Removed commented-out main() in scanner.c
[mcc.git] / bstr.h
blob3caf9d5182f3484c38a412feeec9cc414b635f0d
1 /*
2 * better strings
3 * - and better other things, for that matter!
4 */
6 #ifndef _BSTR_H
7 #define _BSTR_H
9 #include "stdlib.h"
10 #include "stdarg.h"
12 char *strchrnul(const char *str, int c);
13 char *strdcat(char **dest, const char *src);
14 char *strdncat(char **dest, const char *src, size_t n);
15 char *strdcpy(char **dest, const char *src);
16 char *strdncpy(char **dest, const char *src, size_t n);
17 char *strdcatc(char **dest, int ch);
18 char *strldcat(char **dest, int *dest_len, const char *src);
19 char *strldncat(char **dest, int *dest_len, const char *src, size_t n);
20 char *strldcpy(char **dest, int *dest_len, const char *src, int src_len);
21 char *strldncpy(char **dest, int *dest_len, const char *src, size_t n);
22 char *strldcatc(char **dest, int *dest_len, int ch);
23 char *sdprintf(const char *fmt, ...);
24 char *vsdprintf(const char *fmt, va_list ap);
25 void strtolower(char *str);
26 void strtoupper(char *str);
28 char *pathname(const char *str);
29 char *filesuffix(const char *str);
31 #endif