Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked from NJdevPro/SPString

A C string library that's designed with embedded development in mind.

License

Notifications You must be signed in to change notification settings

netzhou/SPString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

SPString

A secure C string library that's designed for embedded development in mind.

This is yet another implementation of the classic {length, char pointer} structure which provides much better security than char* as it prevents buffer overflows by automating changes in string length. The programmer no longer needs to worry about this. This particular implementation was designed so it can be used either with stack based preallocated buffers or dynamically allocated and resizable buffers, depending on the hardware requirements.

It's quite simple and does nothing really fancy so you can easily understand what it does, but when I wrote it in 2009, it was fully tested for embedded hardware with small memory requirements. It passes Valgrind and has been successfully used in production. Unfortunaly I no longer have the tests suite so you'll have to write your own before using this library.

Enjoy !

About

A C string library that's designed with embedded development in mind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%

AltStyle によって変換されたページ (->オリジナル) /