in strspn(): what "spn" stands for?

T

Tim Prince

Joachim said:
span was a Cobol verb, which had useful hardware support in certain
instruction sets. I used it in a string data processing library called
from Fortran 66, before C or f77 compilers were available.
 
R

regis

Hello,

Does somebody here know what "spn" stands for
in the name of the function strspn() ?
 
H

Harald van Dijk

Why don't you read the documentation (or source) from whomever supplied
you that (non-standard) function?

strspn was part of the original C standard, and is part of the current C
standard. <OT> And if you have trouble understanding when "whom" is
appropriate, please just avoid it, at least until you figure it out.
 
D

dj3vande

Why don't you read the documentation (or source) from whomever
supplied you that (non-standard) function?

# 7.21.5.6 The strspn function
#
# Synopsis
#
# [#1]
#
# #include <string.h>
# size_t strspn(const char *s1, const char *s2);
#
# Description
#
# [#2] The strspn function computes the length of the maximum
# initial segment of the string pointed to by s1 which
# consists entirely of characters from the string pointed to
# by s2.
#
# Returns
#
# [#3] The strspn function returns the length of the segment.

I don't see any description of what "spn" means in there.


dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top