GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MEMFILL (3)

NAME

memfill - fill memory area with pattern

CONTENTS

Synopsis
Description
Example
Author

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)
Search for    or go to Top of page |  Section 3 |  Main Index


Publib MEMFILL (3) C Programmer's Manual

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.