Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Visible to Intel only — GUID: GUID-F9F50C07-FA37-4FEB-9826-0FD264045555

Document Table of Contents

String and Block Copy Intrinsics

The following table lists and describes string and block copy intrinsics that you can use on systems based on IA-32 and Intel® 64 architectures. They may invoke library functions that are more highly optimized for Intel® microprocessors than for non-Intel microprocessors.

NOTE:

strncpy() and strncmp() functions are implemented as intrinsics depending on compiler version and compiler switches like optimization level.

Intrinsic

Description

char *_strset(char *, _int32)

Sets all characters in a string to a fixed value.

int memcmp(const void *cs, const void *ct, size_t n)

Compares two regions of memory.

Return:

  • <0 if cs<ct

  • 0 if cs=ct

  • >0 if cs>ct

void *memcpy(void *s, const void *ct, size_t n)

Copies from memory. Returns s.

void *memset(void *s, int c, size_t n)

Sets memory to a fixed value. Returns s.

char *strcat(char *s, const char *ct)

Appends to a string. Returns s.