memfill man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

MEMFILL(3)		     C Programmer's Manual		    MEMFILL(3)

NAME
       memfill - fill memory area with pattern

SYNOPSIS
       #include <publib.h>
       void *memfill(void *buf, size_t size, const void *pat, size_t patsize);

DESCRIPTION
       memfill	copies	consecutive  bytes from the pattern pat to consecutive
       bytes in the memory area buf, wrapping around in pat when  its  end  is
       reached.	  patsize  is the size of the pattern, size is the size of the
       memory area.  The pattern and the memory area must not be overlapping.

RETURN VALUE
       memfill returns its first argument.

EXAMPLE
       To initialize an integer array one might do the following.

	    int temp, array[1024];

	    temp = 1234;
	    memfill(array, sizeof(array), &temp, sizeof(temp));

SEE ALSO
       publib(3)

AUTHOR
       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib			     C Programmer's Manual		    MEMFILL(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net