*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> memccpy (3)              
Title
Content
Arch
Section
 

MEMCCPY(3)

Contents


NAME    [Toc]    [Back]

     memccpy - copy string until character found

SYNOPSIS    [Toc]    [Back]

     #include <string.h>

     void *
     memccpy(void *dst, const void *src, int c, size_t len);

DESCRIPTION    [Toc]    [Back]

     The memccpy() function  copies  bytes  from  string  src  to
string dst.  If
     the character c (as converted to an unsigned char) occurs in
the string
     src, the copy stops and a pointer to the byte after the copy
of c in the
     string  dst  is  returned.  Otherwise, len bytes are copied,
and a null
     pointer is returned.

SEE ALSO    [Toc]    [Back]

      
      
     bcopy(3), memcpy(3), memmove(3), strcpy(3), strlcpy(3)

HISTORY    [Toc]    [Back]

     The memccpy() function first appeared in 4.4BSD.

OpenBSD      3.6                           June      9,      1993
[ Back ]
 Similar pages
Name OS Title
wcscpy Linux copy a wide character string
wcpcpy Linux copy a wide character string, returning a pointer to its end
XmTextGetStringWcs IRIX A Text function that retrieves a copy of the wide character string value of a Text widget
XmTextFieldGetStringWcs HP-UX A TextField function that retrieves a copy of the wide character string value of a TextField widget
XmTextGetStringWcs Tru64 A Text function that retrieves a copy of the wide character string value of a Text widget
XmTextFieldGetStringWcs IRIX A TextField function that retrieves a copy of the wide character string value of a TextField widget
XmTextGetStringWcs HP-UX A Text function that retrieves a copy of the wide character string value of a Text widget
XmTextFieldGetStringWcs Tru64 A TextField function that retrieves a copy of the wide character string value of a TextField widget
mbsrtowcs NetBSD converts a multibyte character string to a wide character string (restartable)
wcsrtombs NetBSD converts a wide character string to a multibyte character string (restartable)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service