ncsa-mosaic/libwww2/HTString.h

50 lines
1.1 KiB
C
Raw Normal View History

2010-03-08 04:55:21 -06:00
/* String handling for libwww
STRINGS
2010-03-08 04:55:21 -06:00
Case-independent string comparison and allocations with copies etc
2010-03-08 04:55:21 -06:00
*/
#ifndef HTSTRING_H
#define HTSTRING_H
#include "HTUtils.h"
extern int WWW_TraceFlag; /* Global flag for all W3 trace */
extern WWW_CONST char * HTLibraryVersion; /* String for help screen etc */
/*
Case-insensitive string comparison
The usual routines (comp instead of cmp) had some problem.
2010-03-08 04:55:21 -06:00
*/
extern int strcasecomp PARAMS((WWW_CONST char *a, WWW_CONST char *b));
extern int strncasecomp PARAMS((WWW_CONST char *a, WWW_CONST char *b, int n));
/*
Malloced string manipulation
*/
#define StrAllocCopy(dest, src) HTSACopy (&(dest), src)
#define StrAllocCat(dest, src) HTSACat (&(dest), src)
extern char * HTSACopy PARAMS ((char **dest, WWW_CONST char *src));
extern char * HTSACat PARAMS ((char **dest, WWW_CONST char *src));
/*
Next word or quoted string
*/
extern char * HTNextField PARAMS ((char** pstr));
#endif
/*
end
2010-03-08 04:55:21 -06:00
*/