Documentation | c-user: Add chapter for stringto library (!219)

Prashant Rahul (@prashantrahul141) gitlab at rtems.org
Sat Feb 21 20:59:20 UTC 2026




Prashant Rahul commented on a discussion on c-user/stringto.md: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/219#note_143181

 > +```
 > +
 > +# Stringto utility
 > +
 > +## Introduction
 > +
 > +The stringto library is a set of wrapper functions around the standard string
 > +to numeric conversion functions `str*()`. Their goal is to provide a more
 > +consistent and safe interface to work with.
 > +
 > +## Background
 > +
 > +The standard `str*()` functions are quite inconsistent in how they handle
 > +and return errors. For example, passing a NULL as an input string causes
 > +`strto*()` functions to cause a segmentation violation in glibc. Whereas
 > +RTEMS's `stringto*` functions return error code indicating what went

fixed

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/219#note_143181
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260221/30f49b07/attachment-0001.htm>


More information about the bugs mailing list