~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/strxnmov.c

  • Committer: Monty Taylor
  • Date: 2008-10-04 18:42:30 UTC
  • Revision ID: monty@inaugust.com-20081004184230-j2j1uottu2d0yl0m
Removed NullS. bu-bye.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    Updated: 2 June 1984
21
21
    Defines: strxnmov()
22
22
 
23
 
    strxnmov(dst, len, src1, ..., srcn, NullS)
 
23
    strxnmov(dst, len, src1, ..., srcn, NULL)
24
24
    moves the first len characters of the concatenation of src1,...,srcn
25
25
    to dst and add a closing NUL character.
26
26
    It is just like my_stpncpy except that it concatenates multiple sources.
27
27
    Beware: the last argument should be the null character pointer.
28
 
    Take VERY great care not to omit it!  Also be careful to use NullS
 
28
    Take VERY great care not to omit it!  Also be careful to use NULL
29
29
    and NOT to use 0, as on some machines 0 is not the same size as a
30
 
    character pointer, or not the same bit pattern as NullS.
 
30
    character pointer, or not the same bit pattern as NULL.
31
31
 
32
32
    NOTE
33
33
      strxnmov is like my_stpncpy in that it moves up to len