summaryrefslogtreecommitdiffstats
path: root/include/string.h
Commit message (Collapse)AuthorAgeFilesLines
* string: Introduce strtoboolSascha Hauer2016-04-291-0/+1
| | | | | | | | | | | | | | | | We have at least two places which convert a string to a boolean type, so create a common function for this. strtobool treats - any positive (nonzero) number as true - "0" as false - "true" (case insensitive) as true - "false" (case insensitive) as false Every other value results in an error and the input *val is not modified. The caller is expected to initialize *val with the correct default before calling strtobool. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: Add (x)memdupSascha Hauer2013-11-271-0/+2
| | | | | | It's a common task to duplicate some memory. Add (x)memdup functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add protection from double inclusion in string.hSascha Hauer2008-03-311-0/+3
|
* add string.hSascha Hauer2007-09-271-0/+3