projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use size_t rather than bfd_size_type
[deliverable/binutils-gdb.git]
/
libiberty
/
memset.c
diff --git
a/libiberty/memset.c
b/libiberty/memset.c
index 5f54831e83c468a62ecc2f59c90a50e8615a09f3..476668961271373f5e9e12b76e7fd9a32cf7879b 100644
(file)
--- a/
libiberty/memset.c
+++ b/
libiberty/memset.c
@@
-1,16
+1,23
@@
/* memset
This implementation is in the public domain. */
/* memset
This implementation is in the public domain. */
+/*
+
+@deftypefn Supplemental void* memset (void *@var{s}, int @var{c}, @
+ size_t @var{count})
+
+Sets the first @var{count} bytes of @var{s} to the constant byte
+@var{c}, returning a pointer to @var{s}.
+
+@end deftypefn
+
+*/
+
#include <ansidecl.h>
#include <ansidecl.h>
-#ifdef __STDC__
#include <stddef.h>
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
PTR
PTR
-DEFUN(memset, (dest, val, len),
- PTR dest AND register int val AND register size_t len)
+memset (PTR dest, register int val, register size_t len)
{
register unsigned char *ptr = (unsigned char*)dest;
while (len-- > 0)
{
register unsigned char *ptr = (unsigned char*)dest;
while (len-- > 0)
This page took
0.023518 seconds
and
4
git commands to generate.