diff options
Diffstat (limited to 'c/dataStructure/string/string.h')
-rwxr-xr-x | c/dataStructure/string/string.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/c/dataStructure/string/string.h b/c/dataStructure/string/string.h new file mode 100755 index 0000000..000f299 --- /dev/null +++ b/c/dataStructure/string/string.h @@ -0,0 +1,19 @@ +#ifndef _STRING_H +#define _STRING_H + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <stdbool.h> + +typedef struct string { + char * s; + int length; +}sstring; + +void StrAssign(sstring * st, const char * ch); +void StrCopy (sstring * st, const sstring * sp); +bool StrEmpty (sstring * st); +int StrCompare(const sstring * st, const sstring * sp); + +#endif
\ No newline at end of file |