~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/strmake.c

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

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>
28
27
#include "m_string.h"
29
28
 
30
29
char *strmake(register char *dst, register const char *src, size_t length)
41
40
    write a character rather than '\0' as this makes spotting these
42
41
    problems in the results easier.
43
42
  */
44
 
  uint n= 0;
 
43
  uint32_t n= 0;
45
44
  while (n < length && src[n++]);
46
45
  memset(dst + n, (int) 'Z', length - n + 1);
47
46
#endif