summaryrefslogtreecommitdiff
path: root/source3/lib/snprintf.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-03 19:58:47 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-03 19:58:47 +0000
commitc015b02b43fa0d7743eb555fdf50fc433dc67b98 (patch)
treed52ba80d95fb4ce0b6d50b3beaecf9c21908201a /source3/lib/snprintf.c
parent37983b979fc99272eef1c61c93294e93c3c1c714 (diff)
downloadsamba-c015b02b43fa0d7743eb555fdf50fc433dc67b98.tar.gz
samba-c015b02b43fa0d7743eb555fdf50fc433dc67b98.tar.bz2
samba-c015b02b43fa0d7743eb555fdf50fc433dc67b98.zip
three types of array-creation / array-deletion functions:
char* UNISTR2* SID* decided to create a higher-order function set, add_item_to_array() free_item_array(). higher-order support routines needed to add a new type: type* item_dup(const type*) void item_free(type*) of course, strdup() and free() are perfect, pre-existing examples of such functions, used in the implementation of add_chars_to_array() and free_char_array(). sid_dup() and free() work for the add_sids_to_array() and free_sid_array() implementations. use unistr2_dup() and created unistr2_free() because the functionality behind these may change into something horrible, like [horror] dynamic memory allocation of the UNISTR2 character array. argh!!!! jean-francois, this function set implements what we talked about over... a year ago, now :-) (This used to be commit a80ea2eb47d298095eb6e5b0455309daa3a631cb)
Diffstat (limited to 'source3/lib/snprintf.c')
0 files changed, 0 insertions, 0 deletions