~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/strmake.c

  • Committer: Monty Taylor
  • Date: 2008-07-05 22:08:52 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705220852-cqd9t6tfkhvlcf73
Removed HAVE_LONG_LONG, as this is now assumed.

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