Implementation of OICStrcat/OICStrcpy
authorErich Keane <erich.keane@intel.com>
Thu, 21 May 2015 22:47:24 +0000 (15:47 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 29 May 2015 15:55:11 +0000 (15:55 +0000)
commit0132ba38de77c51b3d0a5fa50d953a61533b8357
treeceaa79c78516d160ca300edbdf08d5997f268cab
parentbff2b1f9aaca9c7748188d2560ab51286d69a61f
Implementation of OICStrcat/OICStrcpy

Repeated mistakes based on copy and cat operations in the C
code shows that we need a unified implementation that is as safe as
possible.  These implementations closely emulate the Microsoft _S
versions of these functions, which seem to be safest feature wise.

Replacing copy and cat operations is reserved for a different
commit.

Change-Id: Id1f6f4515a00679661cc722419fa0bab84a624c2
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1115
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: John Light <john.j.light@intel.com>
resource/csdk/connectivity/common/inc/oic_string.h
resource/csdk/connectivity/common/src/oic_string.c
resource/csdk/connectivity/test/SConscript
resource/csdk/connectivity/test/oic_string_tests.cpp [new file with mode: 0644]