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

wcscpy.3p (2875B)


  1. '\" et
  2. .TH WCSCPY "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. wcpcpy, wcscpy
  12. \(em copy a wide-character string, returning a pointer to its end
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <wchar.h>
  17. .P
  18. wchar_t *wcpcpy(wchar_t *restrict \fIws1\fP, const wchar_t *restrict \fIws2\fP);
  19. wchar_t *wcscpy(wchar_t *restrict \fIws1\fP, const wchar_t *restrict \fIws2\fP);
  20. .fi
  21. .SH DESCRIPTION
  22. For
  23. \fIwcscpy\fR():
  24. The functionality described on this reference page is aligned with the
  25. ISO\ C standard. Any conflict between the requirements described here and the
  26. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  27. .P
  28. The
  29. \fIwcpcpy\fR()
  30. and
  31. \fIwcscpy\fR()
  32. functions shall copy the wide-character string pointed to by
  33. .IR ws2
  34. (including the terminating null wide-character code) into the array
  35. pointed to by
  36. .IR ws1 .
  37. .P
  38. The application shall ensure that there is room for at least
  39. .IR wcslen (\c
  40. .IR ws2 )\(pl1
  41. wide characters in the
  42. .IR ws1
  43. array, and that the
  44. .IR ws2
  45. and
  46. .IR ws1
  47. arrays do not overlap.
  48. .P
  49. If copying takes place between objects that overlap, the behavior is
  50. undefined.
  51. .SH "RETURN VALUE"
  52. The
  53. \fIwcpcpy\fR()
  54. function shall return a pointer to the terminating null wide-character
  55. code copied into the
  56. .IR ws1
  57. buffer.
  58. .P
  59. The
  60. \fIwcscpy\fR()
  61. function shall return
  62. .IR ws1 .
  63. .P
  64. No return values are reserved to indicate an error.
  65. .SH ERRORS
  66. No errors are defined.
  67. .LP
  68. .IR "The following sections are informative."
  69. .SH EXAMPLES
  70. None.
  71. .SH "APPLICATION USAGE"
  72. None.
  73. .SH RATIONALE
  74. None.
  75. .SH "FUTURE DIRECTIONS"
  76. None.
  77. .SH "SEE ALSO"
  78. .IR "\fIstrcpy\fR\^(\|)",
  79. .IR "\fIwcsdup\fR\^(\|)",
  80. .IR "\fIwcsncpy\fR\^(\|)"
  81. .P
  82. The Base Definitions volume of POSIX.1\(hy2017,
  83. .IR "\fB<wchar.h>\fP"
  84. .\"
  85. .SH COPYRIGHT
  86. Portions of this text are reprinted and reproduced in electronic form
  87. from IEEE Std 1003.1-2017, Standard for Information Technology
  88. -- Portable Operating System Interface (POSIX), The Open Group Base
  89. Specifications Issue 7, 2018 Edition,
  90. Copyright (C) 2018 by the Institute of
  91. Electrical and Electronics Engineers, Inc and The Open Group.
  92. In the event of any discrepancy between this version and the original IEEE and
  93. The Open Group Standard, the original IEEE and The Open Group Standard
  94. is the referee document. The original Standard can be obtained online at
  95. http://www.opengroup.org/unix/online.html .
  96. .PP
  97. Any typographical or formatting errors that appear
  98. in this page are most likely
  99. to have been introduced during the conversion of the source files to
  100. man page format. To report such errors, see
  101. https://www.kernel.org/doc/man-pages/reporting_bugs.html .