PIPS
memset.c File Reference
#include <config.h>
#include <stddef.h>
+ Include dependency graph for memset.c:

Go to the source code of this file.

Functions

void * memset (void *str, int c, size_t len)
 memset.c – set an area of memory to a given value Copyright (C) 1991, 2003, 2009-2011 Free Software Foundation, Inc. More...
 

Function Documentation

◆ memset()

void* memset ( void *  str,
int  c,
size_t  len 
)

memset.c – set an area of memory to a given value Copyright (C) 1991, 2003, 2009-2011 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition at line 23 of file memset.c.

24 {
25  register char *st = str;
26 
27  while (len-- > 0)
28  *st++ = c;
29  return str;
30 }

Referenced by compute_dg_on_statement_from_chains_in_place(), convert_string_for_daVinci_graph(), make_filtered_dg_or_dvdg(), and VASNPRINTF().

+ Here is the caller graph for this function: