STRCSPN(9) Basic C Library Functions STRCSPN(9)NAME
strcspn - Calculate the length of the initial substring of s which does not contain letters in reject
size_t strcspn(const char * s, const char * reject);
The string to be searched
The string to avoid
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 STRCSPN(9)
Check Out this Related Man Page
STRCSPN(3P) POSIX Programmer's Manual STRCSPN(3P)PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
strcspn - get the length of a complementary substring
size_t strcspn(const char *s1, const char *s2);
The strcspn() function shall compute the length (in bytes) of the maximum initial segment of the string pointed to by s1 which consists
entirely of bytes not from the string pointed to by s2.
The strcspn() function shall return the length of the computed segment of the string pointed to by s1; no return value is reserved to indi-
cate an error.
No errors are defined.
The following sections are informative.
strspn(), the Base Definitions volume of IEEE Std 1003.1-2001, <string.h>
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 STRCSPN(3P)
Im trying to write some code atm which gets the complete pathname of a folder and strips off references to the parent folders. The end result should be just the name of the folder.
Currently Im able to extract the folder name, however Im getting junk added onto the name as well which is making... (7 Replies)
I'm having a problem with the output of my code and I'm wondering if __fpurge() might be my solution.
Here is the code:
float bonus(char x);
printf("Enter employee name: ");
fgets ( name, 10, stdin );... (4 Replies)
I am trying to fetch some values from db and spooling the output to a file.
when i query the db for the values, i get the values in following format.
PC_1 wf_test1 Test
PC_2 wf_test2 Test
PC_3 wf_test3 Test
But my spool file was created in following format.
Test... (20 Replies)
I have an issue where email is working fine in our Windows environments but is blowing up in our AIX environments.
Here is the related functions that are getting called:
int get_smtp_line( void )
char ch = '.';
char in_data ;
char * index;
int retval = 0;
... (4 Replies)
I'm completely stumped on this. An AIX machine I'm working on is attempting to send email, but the SMTP connection is failing. I have no idea what this code does or if it should even work. If someone could give me a hand, or a suggestion on what else to use, I would appreciate... (54 Replies)
Joins from pipes many to one in one pass and other tricks:
$ cat mysrc/m1join.c
static int msep_ign = 1 ;
static int fullouter = 0 ;
static int leftouter = 0 ;
static int rightouter = 0 ;... (0 Replies)
I have a question about socket programming
The question was a homework of this university of past (2011?) course.
The server is simulating a sensor that provides readings of temperature, light and humidity (temp.dat, light.dat, humid.dat) each with single column of number, one per row. ... (6 Replies)