memccpy.3 (c879ae3536e6d92b8d96c8965c5b05fcb9541520) memccpy.3 (2eeaf934088a2e12646ed4850c7a08c42e894c19)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 36 unchanged lines hidden (view full) ---

45.Fn memccpy
46function
47copies bytes from string
48.Fa src
49to string
50.Fa dst .
51If the character
52.Fa c
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 36 unchanged lines hidden (view full) ---

45.Fn memccpy
46function
47copies bytes from string
48.Fa src
49to string
50.Fa dst .
51If the character
52.Fa c
53(as converted to an unsigned char) occurs in the string
53(as converted to an
54.Vt "unsigned char" )
55occurs in the string
54.Fa src ,
55the copy stops and a pointer to the byte after the copy of
56.Fa c
57in the string
58.Fa dst
59is returned.
60Otherwise,
61.Fa len
62bytes are copied, and a NULL pointer is returned.
63.Sh SEE ALSO
64.Xr bcopy 3 ,
65.Xr memcpy 3 ,
66.Xr memmove 3 ,
67.Xr strcpy 3
68.Sh HISTORY
69The
70.Fn memccpy
71function first appeared in
72.Bx 4.4 .
56.Fa src ,
57the copy stops and a pointer to the byte after the copy of
58.Fa c
59in the string
60.Fa dst
61is returned.
62Otherwise,
63.Fa len
64bytes are copied, and a NULL pointer is returned.
65.Sh SEE ALSO
66.Xr bcopy 3 ,
67.Xr memcpy 3 ,
68.Xr memmove 3 ,
69.Xr strcpy 3
70.Sh HISTORY
71The
72.Fn memccpy
73function first appeared in
74.Bx 4.4 .