1234567891011121314151617181920212223 |
- #ifndef DYMC_STR_H_
- #define DYMC_STR_H_
- #include <stdio.h>
- #include <stddef.h>
- char *str_strip(const char *str);
- // return: vec of char*
- void *str_split(const char *str, char delim);
- // string stream
- void* new_ss();
- void ss_add(void *self, char *format, ...);
- void ss_addc(void *self, char c);
- char *ss_cstr(void *self);
- size_t ss_size(void* self);
- char *fgetline(FILE *fp);
- int fpeek(FILE *fp);
- #endif
|