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

strspn.3p (2267B)


  1. '\" et
  2. .TH STRSPN "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. strspn
  12. \(em get length of a substring
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <string.h>
  17. .P
  18. size_t strspn(const char *\fIs1\fP, const char *\fIs2\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. \fIstrspn\fR()
  27. function shall compute the length (in bytes) of the maximum initial
  28. segment of the string pointed to by
  29. .IR s1
  30. which consists entirely of bytes from the string pointed to by
  31. .IR s2 .
  32. .SH "RETURN VALUE"
  33. The
  34. \fIstrspn\fR()
  35. function shall return the computed length; no return value is reserved
  36. to indicate an error.
  37. .SH ERRORS
  38. No errors are defined.
  39. .LP
  40. .IR "The following sections are informative."
  41. .SH EXAMPLES
  42. None.
  43. .SH "APPLICATION USAGE"
  44. None.
  45. .SH RATIONALE
  46. None.
  47. .SH "FUTURE DIRECTIONS"
  48. None.
  49. .SH "SEE ALSO"
  50. .IR "\fIstrcspn\fR\^(\|)"
  51. .P
  52. The Base Definitions volume of POSIX.1\(hy2017,
  53. .IR "\fB<string.h>\fP"
  54. .\"
  55. .SH COPYRIGHT
  56. Portions of this text are reprinted and reproduced in electronic form
  57. from IEEE Std 1003.1-2017, Standard for Information Technology
  58. -- Portable Operating System Interface (POSIX), The Open Group Base
  59. Specifications Issue 7, 2018 Edition,
  60. Copyright (C) 2018 by the Institute of
  61. Electrical and Electronics Engineers, Inc and The Open Group.
  62. In the event of any discrepancy between this version and the original IEEE and
  63. The Open Group Standard, the original IEEE and The Open Group Standard
  64. is the referee document. The original Standard can be obtained online at
  65. http://www.opengroup.org/unix/online.html .
  66. .PP
  67. Any typographical or formatting errors that appear
  68. in this page are most likely
  69. to have been introduced during the conversion of the source files to
  70. man page format. To report such errors, see
  71. https://www.kernel.org/doc/man-pages/reporting_bugs.html .