String.h 439 B

12345678910111213141516171819202122232425
  1. #ifndef STRING_H
  2. #define STRING_H
  3. #include "Stream.h"
  4. typedef struct String
  5. {
  6. int length;
  7. char* data;
  8. } String;
  9. void stringInit(String* s);
  10. void stringRemove(String* s);
  11. int stringGetLength(String* s);
  12. void stringReadStreamLine(String* s, Stream* in);
  13. void stringRead(String* s);
  14. int stringCompare(String* s, const char* chars);
  15. int stringCompareNoCase(String* s, const char* chars);
  16. int stringIsInteger(String* s);
  17. #endif