~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/strfill.c

  • Committer: Monty Taylor
  • Date: 2008-07-09 19:33:54 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 124.
  • Revision ID: monty@inaugust.com-20080709193354-vi0pemwf40galnll
First step of sql-common removal (the cheap way) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    strfill() returns pointer to dest+len;
24
24
*/
25
25
 
 
26
#include <my_global.h>
26
27
#include "m_string.h"
27
28
 
28
 
char * strfill(char *s, size_t len, char fill)
 
29
char * strfill(char *s, size_t len, pchar fill)
29
30
{
30
31
  while (len--) *s++ = fill;
31
32
  *(s) = '\0';