Alex Rivera | Logout

What does strpbrk stand for?

Asked 2009-02-01T15:27:05.543
35

I've used strpbrk() occasionally while doing low-level string work in C, but I've never been able to figure out what it stands for. I've always pronounced it internally in my head as "stir p bark", but that's never quite felt right.

It doesn't have an etymology as obvious as any of the other string functions, e.g. strchr (string character) or strspn (string span).

I vaguely recall reading somewhere that all of the original standard library functions were limited to 7-character names either to remain compatible with Fortran, or because in the original C standard, identifiers longer than 7 characters were considered equivalent to their 7-character prefix or something. Can anyone confirm/deny/clarify this?

c
Edit
Report

1 Answer

6

In 1972 at Bell Labs there was also a programming language named Snobol which was intended for string manipulation. It had functions break() and span(), which did essentially the same thing. Most of the string functions are modeled after something which appeared in Snobol. Check the curriculum vitae and books written by Dr. James F. Gimpel

answered 2012-05-31T14:11:54.357

Your Answer