~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/strmake.c

  • Committer: Brian Aker
  • Date: 2008-07-01 23:01:40 UTC
  • mfrom: (28.1.27 libtool-patch)
  • Revision ID: brian@tangent.org-20080701230140-8bs081cfx1mxugp4
More Cleanup around dead files/GNU Makefile warnings (just a merge from me)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    strmake() returns pointer to closing null
25
25
*/
26
26
 
 
27
#include <my_global.h>
27
28
#include "m_string.h"
28
29
 
29
30
char *strmake(register char *dst, register const char *src, size_t length)
40
41
    write a character rather than '\0' as this makes spotting these
41
42
    problems in the results easier.
42
43
  */
43
 
  uint32_t n= 0;
 
44
  uint n= 0;
44
45
  while (n < length && src[n++]);
45
46
  memset(dst + n, (int) 'Z', length - n + 1);
46
47
#endif