home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------*
- * filename - strset.c
- *
- * function(s)
- * strset - sets all characters in a string to a given
- * character
- *-----------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- #include <string.h>
- #include <mem.h>
-
- /*---------------------------------------------------------------------*
-
- Name strset - sets all characters in a string to a given
- character
-
- Usage char *strset(char *str, int ch);
-
- Prototype in string.h
-
- Description strset sets all characters in the string str to the
- character ch.
-
- Return value pointer to str
-
- *---------------------------------------------------------------------*/
- #undef strset /* not an intrinsic */
- char *strset(char *s, int ch)
- {
- setmem(s, strlen(s), ch);
- return (s);
- }
-
-