- Timestamp:
- Jun 11, 2007 5:02:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/compat/string_compat.c
r1235 r1361 20 20 #include <pj/compat/string.h> 21 21 #include <pj/ctype.h> 22 #include <pj/assert.h> 23 22 24 23 25 #if defined(PJ_HAS_STRING_H) && PJ_HAS_STRING_H != 0 … … 65 67 PJ_DEF(int) vsnprintf(char *s1, pj_size_t len, const char *s2, va_list arg) 66 68 { 67 PJ_UNUSED_ARG(len); 68 return vsprintf(s1,s2,arg); 69 #define MARK_CHAR ((char)255) 70 int rc; 71 72 s1[len-1] = MARK_CHAR; 73 74 rc = vsprintf(s1,s2,arg); 75 76 pj_assert(s1[len-1] == MARK_CHAR || s1[len-1] == '\0'); 77 78 return rc; 69 79 } 70 80
Note: See TracChangeset
for help on using the changeset viewer.