2 * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
3 * All rights reserved. The file named COPYRIGHT specifies the terms
4 * and conditions for redistribution.
12 * $Id: str.h,v 1.4 2003/06/07 16:46:32 steveg Exp $
18 #define PRINTF_FORMAT(n, m) \
19 __attribute__ ((format (printf, n, m)))
21 #define PRINTF_FORMAT(n, m)
27 * strprint(3) functions
29 char *strx_sprint ( char *buf, int len, const char *fmt, ... )
31 int strx_nprint ( char *buf, int len, const char *fmt, ... )
33 void strx_print ( int *count, char *buf, int len, const char *fmt, ... )
36 int strx_nprintv ( char *buf, int len, const char *fmt, va_list )
38 void strx_printv ( int *cnt, char *buf, int len, const char *fmt, va_list )
43 * strparse(3) functions
45 int str_setstr( str_h handle, char *newstr );
55 * Flags for the string parsing functions
57 #define STR_NOFLAGS 0x0
58 #define STR_RETURN_ERROR 0x1
59 #define STR_NULL_START 0x2
60 #define STR_NULL_END 0x4
61 #define STR_MALLOC 0x8
66 #define STR_ENULLSEPAR 1
67 #define STR_ENULLSTRING 2
70 char *new_string(const char *) ;
71 str_h str_parse ( char *str, const char *separ, int flags, int *errnop ) ;
72 void str_endparse ( str_h handle ) ;
73 char *str_component ( str_h handle ) ;
77 * strutil(3) functions
79 char *str_casefind ( char *s1, const char *s2 ) ;
80 void str_fill ( char *s, char c ) ;