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

memcpy.3p (2337B)


  1. '\" et
  2. .TH MEMCPY "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. memcpy
  12. \(em copy bytes in memory
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <string.h>
  17. .P
  18. void *memcpy(void *restrict \fIs1\fP, const void *restrict \fIs2\fP, size_t \fIn\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fImemcpy\fR()
  27. function shall copy
  28. .IR n
  29. bytes from the object pointed to by
  30. .IR s2
  31. into the object pointed to by
  32. .IR s1 .
  33. If copying takes place between objects that overlap, the behavior is
  34. undefined.
  35. .SH "RETURN VALUE"
  36. The
  37. \fImemcpy\fR()
  38. function shall return
  39. .IR s1 ;
  40. no return value is reserved to indicate an error.
  41. .SH ERRORS
  42. No errors are defined.
  43. .LP
  44. .IR "The following sections are informative."
  45. .SH EXAMPLES
  46. None.
  47. .SH "APPLICATION USAGE"
  48. The
  49. \fImemcpy\fR()
  50. function does not check for the overflow of the receiving memory
  51. area.
  52. .SH RATIONALE
  53. None.
  54. .SH "FUTURE DIRECTIONS"
  55. None.
  56. .SH "SEE ALSO"
  57. The Base Definitions volume of POSIX.1\(hy2017,
  58. .IR "\fB<string.h>\fP"
  59. .\"
  60. .SH COPYRIGHT
  61. Portions of this text are reprinted and reproduced in electronic form
  62. from IEEE Std 1003.1-2017, Standard for Information Technology
  63. -- Portable Operating System Interface (POSIX), The Open Group Base
  64. Specifications Issue 7, 2018 Edition,
  65. Copyright (C) 2018 by the Institute of
  66. Electrical and Electronics Engineers, Inc and The Open Group.
  67. In the event of any discrepancy between this version and the original IEEE and
  68. The Open Group Standard, the original IEEE and The Open Group Standard
  69. is the referee document. The original Standard can be obtained online at
  70. http://www.opengroup.org/unix/online.html .
  71. .PP
  72. Any typographical or formatting errors that appear
  73. in this page are most likely
  74. to have been introduced during the conversion of the source files to
  75. man page format. To report such errors, see
  76. https://www.kernel.org/doc/man-pages/reporting_bugs.html .