php-src/ext/mysql/libmysql/strfill.c

23 lines
610 B
C
Raw Normal View History

2000-08-22 17:59:35 +00:00
/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
2000-02-19 10:10:46 +00:00
/* File : strfill.c
Author : Monty
Updated: 1987.04.16
Defines: strfill()
strfill(dest, len, fill) makes a string of fill-characters. The result
string is of length == len. The des+len character is allways set to NULL.
strfill() returns pointer to dest+len;
*/
#include <global.h>
#include "m_string.h"
my_string strfill(my_string s,uint len,pchar fill)
{
while (len--) *s++ = fill;
*(s) = '\0';
return(s);
} /* strfill */