X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemset.c;h=d7321b200e91d5cb4ad12935f2afc50fd52e4518;hb=5b3ef25d51691462730b000864e0eb09ebd34013;hp=0e819f20ee4ea285b61cf28e8ebab39eed748592;hpb=87e2683e04a8ef7d18ea8f515e65d8885e5a2355;p=gnulib.git diff --git a/lib/memset.c b/lib/memset.c index 0e819f20e..d7321b200 100644 --- a/lib/memset.c +++ b/lib/memset.c @@ -1,5 +1,5 @@ /* memset.c -- set an area of memory to a given value - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,14 +12,13 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -char * -memset (str, c, len) - char *str; - int c; - unsigned len; +#include + +void * +memset (void *str, int c, size_t len) { register char *st = str;