| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

strcset

#include "sflstr.h"
char *
strcset (
    char *string,
    char ch)

Synopsis

Sets all characters in string up to but not including the final null character to ch. Returns string. Use this function instead of the equivalent but non-portable strset() function.

Source Code - (sflstr.c)

{
    char *scan;

    ASSERT (string);
    scan = string;
    while (*scan)
        *scan++ = ch;
    return (string);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix