CS2263/Labs/Lab4/Lec10src/Strings.h
2023-05-22 23:28:51 -03:00

19 lines
438 B
C

#ifndef STRINGS_H
#define STRINGS_H
// a cover function for malloc()
// malloc and return memory for a string of stringsize characters
// return (char*)NULL on failure
char* mallocString(int stringsize);
// just a cover function for free()
void freeString(char* s);
// create a duplicate string of s
// return it
// return (char*)NULL on failure
// should call mallocString(), and then strcpy()
char* duplicateString(char* s);
#endif