String.h 335 B

1234567891011121314151617181920
  1. #ifndef STRING_H
  2. #define STRING_H
  3. typedef struct String
  4. {
  5. int length;
  6. char* data;
  7. } String;
  8. void stringInit(String* s);
  9. void stringRemove(String* s);
  10. int stringGetLength(String* s);
  11. void stringRead(String* s);
  12. int stringCompare(String* s, const char* chars);
  13. int stringCompareNoCase(String* s, const char* chars);
  14. #endif