SW500010 Microchip Technology, SW500010 Datasheet - Page 258

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
MEMSET
Synopsis
Description
The memset() function fills n bytes of memory starting at the location pointed to by s with the byte
c.
Example
See Also
strncpy(), strncmp(), strchr(), memcpy(), memchr()
258
#include <string.h>
/ * For baseline and midrange processors * /
void * memset (void * s, int c, size_t n)
/ * For high-end processors * /
far void * memset (far void * s, int c, size_t n)
#include <string.h>
#include <stdio.h>
void
main (void)
{
}
char abuf[20];
strcpy(abuf, "This is a string");
memset(abuf, ’x’, 5);
printf("buf = ’%s’\n", abuf);
Library Functions

Related parts for SW500010