logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

memccpy.3p (2301B)


  1. '\" et
  2. .TH MEMCCPY "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. memccpy
  12. \(em copy bytes in memory
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <string.h>
  17. .P
  18. void *memccpy(void *restrict \fIs1\fP, const void *restrict \fIs2\fP,
  19. int \fIc\fP, size_t \fIn\fP);
  20. .fi
  21. .SH DESCRIPTION
  22. The
  23. \fImemccpy\fR()
  24. function shall copy bytes from memory area
  25. .IR s2
  26. into
  27. .IR s1 ,
  28. stopping after the first occurrence of byte
  29. .IR c
  30. (converted to an
  31. .BR "unsigned char" )
  32. is copied, or after
  33. .IR n
  34. bytes are copied, whichever comes first. If copying takes place
  35. between objects that overlap, the behavior is undefined.
  36. .SH "RETURN VALUE"
  37. The
  38. \fImemccpy\fR()
  39. function shall return a pointer to the byte after the copy of
  40. .IR c
  41. in
  42. .IR s1 ,
  43. or a null pointer if
  44. .IR c
  45. was not found in the first
  46. .IR n
  47. bytes of
  48. .IR s2 .
  49. .SH ERRORS
  50. No errors are defined.
  51. .LP
  52. .IR "The following sections are informative."
  53. .SH EXAMPLES
  54. None.
  55. .SH "APPLICATION USAGE"
  56. The
  57. \fImemccpy\fR()
  58. function does not check for the overflow of the receiving memory area.
  59. .SH RATIONALE
  60. None.
  61. .SH "FUTURE DIRECTIONS"
  62. None.
  63. .SH "SEE ALSO"
  64. The Base Definitions volume of POSIX.1\(hy2017,
  65. .IR "\fB<string.h>\fP"
  66. .\"
  67. .SH COPYRIGHT
  68. Portions of this text are reprinted and reproduced in electronic form
  69. from IEEE Std 1003.1-2017, Standard for Information Technology
  70. -- Portable Operating System Interface (POSIX), The Open Group Base
  71. Specifications Issue 7, 2018 Edition,
  72. Copyright (C) 2018 by the Institute of
  73. Electrical and Electronics Engineers, Inc and The Open Group.
  74. In the event of any discrepancy between this version and the original IEEE and
  75. The Open Group Standard, the original IEEE and The Open Group Standard
  76. is the referee document. The original Standard can be obtained online at
  77. http://www.opengroup.org/unix/online.html .
  78. .PP
  79. Any typographical or formatting errors that appear
  80. in this page are most likely
  81. to have been introduced during the conversion of the source files to
  82. man page format. To report such errors, see
  83. https://www.kernel.org/doc/man-pages/reporting_bugs.html .