libnostd: Not-so-standard standard macros and routines

description

libnostd is a collection of both cross-platform compatibility macros and routines, and common macros and routines used in general-purpose C programming.

For example, one compatibility issue addressed are the <sys/time.h> timer macros and gettimeofday(2) routine, some or all of which are not available in a WIN32 environment but provided in this library. Similarly, the popular strlcpy(3) and strlcat(3) routines are provided.

As a general rule, libnostd only contains interfaces which have a long history in the generally available body of C code. A de jure or de facto standard counts strongly (e.g. WinSock or ISO C99 routines). Others are pulled from long established projects, like STRINGIFY from the Perl code base.

Given the purpose of this library, it's been designed as a drop-in body of C code for existing projects, as opposed to a separate installable library. C routines can optionally be declared and defined statically or externally. In the latter case, one must include the .c files into a compilable unit within the existing project.

todo

news

2007-04-12

Renamed the project from libcom to libnostd.

2007-03-18

New include layout. Mirrors the layout from standard definitions (e.g. <sys/time/gettimeofday.h>).

2006-11-12

Created.

license

Copyright (c) 2006-2007 William Ahern [mailto:william@25thandClement.com]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

download

Download the latest snapshot tarball [snapshots/libnostd-snapshot.tgz] .

other projects

airctl | bsdauth | cnippets | libmime | libarena | libevnet | authldap | streamlocal | libnostd | AnonNet