Skip to content

C code to handle dynamically allocated strings of arbitary length

License

Notifications You must be signed in to change notification settings

Vge0rge/big-string-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Big string in C

This c code implements a dynamic string object in C. Using the custom object bigString and the given methods someone can create a dynamic string without doing the allocation of the memmory manually. Tfe freeing of the memmory should be done manually with free.

Usage

bigString *myBigString;
myBigString = initializeString();
myBigString = addCharacter(myBigString, 'a');
myBigString = addCharacter(myBigString, 'b');

printf("Print the bigstring content:%s\n", myBigString->text);
free(myBigString->text);
free(myBigString);

License

This project is licensed under the MIT License - see the LICENCE.md file for details

About

C code to handle dynamically allocated strings of arbitary length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages