Note that strdup(3) will set errno if memory allocation fails.  This is also required by the forthcoming POSIX.1-200x standard.
Note that strdup(3) will set errno if memory allocation fails.  This
is also required by the forthcoming POSIX.1-200x standard.

Obtained from:	malloc.3

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase