Lines Matching defs:str
222 vsnprintf(char *str, size_t size, const char *format, va_list ap);
224 unsafe_vsnprintf(char *str, size_t size, const char *format, va_list ap);
233 write to the character string str. These functions write the
244 were discarded. The size or str may be given as zero to find
245 out how many characters are needed; in this case, the str
550 static void dostr( char **buffer, int *left, char *str );
553 int plp_vsnprintf(char *str, size_t count, const char *fmt, va_list args)
559 if( count == 0 ) str = 0;
560 buffer = str;
562 /* fprintf(stderr,"str 0x%x, buffer 0x%x, count %d, left %d\n",
563 (int)str, (int)buffer, count, left ); */
564 if( str && count > 0 ){
566 str[count-left] = 0;
568 str[count-1] = 0;
574 int plp_unsafe_vsnprintf(char *str, size_t count, const char *fmt, va_list args)
580 if( count == 0 ) str = 0;
581 buffer = str;
583 /* fprintf(stderr,"str 0x%x, buffer 0x%x, count %d, left %d\n",
584 (int)str, (int)buffer, count, left ); */
585 if( str && count > 0 ){
587 str[count-left] = 0;
589 str[count-1] = 0;
597 int plp_snprintf (char *str,size_t count,const char *fmt,...)
603 char *str;
611 VA_SHIFT (str, char *);
614 n = plp_vsnprintf ( str, count, fmt, ap);
622 int plp_unsafe_snprintf (char *str,size_t count,const char *fmt,...)
628 char *str;
636 VA_SHIFT (str, char *);
639 n = plp_unsafe_vsnprintf ( str, count, fmt, ap);
858 /* fprintf( stderr, "str '%s', place %d, sign %c, padlen %d\n",
922 /* fprintf( stderr, "str '%s', place %d, sign %c, padlen %d\n",
988 static void dostr( char **buffer, int *left, char *str )
990 if(str)while(*str) dopr_outch( buffer, left, *str++ );
1099 int vsnprintf(char *str, size_t count, const char *fmt, va_list args)
1103 n = plp_vsnprintf(str, count, fmt, args);
1111 int snprintf (char *str,size_t count,const char *fmt,...)
1117 char *str;
1125 VA_SHIFT (str, char *);
1128 n = plp_vsnprintf ( str, count, fmt, ap);