Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

strings.h(7posix) [posix man page]

<strings.h>(P)						     POSIX Programmer's Manual						    <strings.h>(P)

NAME
strings.h - string operations SYNOPSIS
#include <strings.h> DESCRIPTION
The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided. int bcmp(const void *, const void *, size_t); (LEGACY ) void bcopy(const void *, void *, size_t); (LEGACY ) void bzero(void *, size_t); (LEGACY ) int ffs(int); char *index(const char *, int); (LEGACY ) char *rindex(const char *, int); (LEGACY ) int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); The size_t type shall be defined through typedef as described in <stddef.h> . The following sections are informative. APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
<stddef.h> , the System Interfaces volume of IEEE Std 1003.1-2001, ffs(), strcasecmp(), strncasecmp() COPYRIGHT
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 <strings.h>(P)

Check Out this Related Man Page

INDEX(P)						     POSIX Programmer's Manual							  INDEX(P)

NAME
index - character string operations (LEGACY) SYNOPSIS
#include <strings.h> char *index(const char *s, int c); DESCRIPTION
The index() function shall be equivalent to strchr(). RETURN VALUE
See strchr() . ERRORS
See strchr() . The following sections are informative. EXAMPLES
None. APPLICATION USAGE
The strchr() function is preferred over this function. For maximum portability, it is recommended to replace the function call to index() as follows: #define index(a,b) strchr((a),(b)) RATIONALE
None. FUTURE DIRECTIONS
This function may be withdrawn in a future version. SEE ALSO
strchr() , the Base Definitions volume of IEEE Std 1003.1-2001, <strings.h> COPYRIGHT
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 INDEX(P)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sort a big data file

Hello, I have a big data file (160 MB) full of records with pipe(|) delimited those fields. I`m sorting the file on the first field. I'm trying to sort with "sort" command and it brings me 6 minutes. I have tried with some transformation methods in perl but it results "Out of memory". I was... (2 Replies)
Discussion started by: rubber08
2 Replies

2. Shell Programming and Scripting

Encript Timestamp with blowfish

Good afternoon to you all I need help I need a script that will allow to encrypt the system´s timestamp; I have to use a pre-shared key to cipher the timestamp, so basically I need: 1st) cipher with a pre-shared key 2nd) encrypt the timestamp 3rd) encode on a base64 the output... (1 Reply)
Discussion started by: zarahel
1 Replies

3. Programming

AIX calling WINSOCK during e-mail - normal?

Hey everyone, 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)
Discussion started by: ctote
54 Replies

4. Shell Programming and Scripting

Get Formatted Date from Unix Epoch

Could someone please explain how to get a formatted date from the unix epoch (the number of seconds since Jan 1, 1970) For example., If the input is 1297969816, then the output should be 2011-02-17 in YYYY-MM-DD formatted manner. I am using AIX sh shell. Tried date -d and date --date, these... (4 Replies)
Discussion started by: Jesinth Nirmal
4 Replies

5. Red Hat

MRTG Installation and Compilation Error

THESE ARE MY INFORMATION ABOUT MRTG AND LIBERIES. I have mrtg version “mrtg-2.17.2” Then after running :rpm -qa | grep gcc I got gcc-4.4.4-13.el6.x86_64 libgcc-4.4.4-13.el6.x86_64 libgcc-4.4.4-13.el6.i686 Then after running :rpm -qa | grep gd I got... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

6. UNIX for Advanced & Expert Users

nth date

Hi I need to get the date of 50th day from the last friday for one of the calculation into variable in Unix script. The format required is YYYYMMDD. I have solaris OS and dont have GNU date. I would appreciate if some one can help me with this. It can be a onliner or function or block of code. ... (7 Replies)
Discussion started by: lijjumathew
7 Replies

7. Shell Programming and Scripting

Leaving directory Error

Hi, i have a question, when I install any software it give error message like as follow : sudo make password for csm: make all-recursive make: Entering directory `/home/csm/Desktop/miRanda-3.3a' Making all in man make: Entering directory `/home/csm/Desktop/miRanda-3.3a/man' make:... (18 Replies)
Discussion started by: harpreetmanku04
18 Replies

8. UNIX for Dummies Questions & Answers

Error message while software installation

I got every time the same error leaving directory etc when i install any software. I put up the command and the error below, kindly help me out so i could proceed. csm@csm-HP-Z420:~$ cd Desktop/ csm@csm-HP-Z420:~/Desktop$ csm@csm-HP-Z420:~/Desktop$ cd microtar-0.9.6/... (8 Replies)
Discussion started by: harpreetmanku04
8 Replies

9. Shell Programming and Scripting

Match exact String with sed command

I have a workaround to the problem i m posting, however if someone wants to look at my query and respond ... i will appreciate. This is in reference to this thread -> https://www.unix.com/shell-programming-and-scripting/267630-extract-between-two-exact-matched-strings.html I have data.txt as... (11 Replies)
Discussion started by: mohtashims
11 Replies

10. Shell Programming and Scripting

Scratching my head over old post

Hello ! Pondering over some old post & I need some help. Here is the link below - https://www.unix.com/shell-programming-and-scripting/157909-pull-intermediate-strings.html When I run this, echo " process(130) Deleting Text on line 11 (ESN:27723211621B01DJ68AG) because a number... (2 Replies)
Discussion started by: OMLEELA
2 Replies

11. Programming

I can't compile (gcc) in Solaris 11.3 non global zone

I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Discussion started by: sugar222
4 Replies

12. AIX

Compiling problem - AIX 7.2

Hi We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1 With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why. When... (10 Replies)
Discussion started by: bobochacha29
10 Replies

13. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies