08-22-2008
strtok() might be returning NULL. Did you check it?
The code will work if p points to a string like "sat_item".
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anyone please help....
how can I dump just a single file to tape using the ufsrestore command!!! I'm a newbie to unix and It's driving me mad..
Thanks in advance. (2 Replies)
Discussion started by: Jonathan
2 Replies
2. UNIX for Advanced & Expert Users
How would i go about dumping my /home/ directory and my /root directory
i currently have.....
dump -f /root/backup.dp /home/ /root/
...but dump only seems to see only my first source directory and not the second (/root in this case)
anyone know a way around this..or if it is even... (1 Reply)
Discussion started by: Freakytah
1 Replies
3. Solaris
Hello All
Is it possible to disable a specific process from core dumping ?
In my environment I have 2 bespoke application processes which needs to be stopped from core dumping but any other process should be allowed to core dump.
If I do : coreadm -d process it will stop all per processes... (3 Replies)
Discussion started by: baner_n
3 Replies
4. HP-UX
Hi,
I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone.
And its not dumping core if we run the script using "/bin/sh" instead of "ksh"
Can some body please help me how to resolve this issue.
... (9 Replies)
Discussion started by: simhe02
9 Replies
5. Programming
A question to ask.
seq1 = "eeeeeeeeeeeeeeeeee";
seq2 = "dddddddddddddddddddd";
char a = '*';
strcat(*seq2, &a);
strcat(*seq1, seq2);
compilation
warning: passing arg 1 of `strcat' makes pointer from integer without a cast
thanks (4 Replies)
Discussion started by: cdbug
4 Replies
6. Shell Programming and Scripting
Hi all,
How does string concatenation work in shell scripting?
I basically have a variable called "string" and I want to add the strings "aaa" "bbb" "ccc" "ddd" to the variable "string". These strings would be added based on some conditions and separated by spaces . So "string" might look... (8 Replies)
Discussion started by: felixmat1
8 Replies
7. Programming
Anyone have any ideas why when using strcat function I would get some garbage at the beginning of the output string? what I'm doing is something like the following example.
Code:
char temp;
char tempHolder;
for(int i=0;i<something;i++){
sprintf(temp,"%u ", someVariable);... (2 Replies)
Discussion started by: airon23bball
2 Replies
8. Red Hat
How to now if the server is core dumping into the same filesystem? (4 Replies)
Discussion started by: 300zxmuro
4 Replies
9. Programming
Hello,
#include <stdio.h>
#include <string.h>
void main()
{
char tab={"12"};
FILE *outfile;
char *outname = "/home/dir/";
printf("%s",strcat(outname,tab));
outfile = fopen(strcat(outname,tab), "w");
if (!outfile) {
printf("There was a problem opening %s for writing\n", outname);
... (2 Replies)
Discussion started by: chercheur857
2 Replies
LEARN ABOUT FREEBSD
string
STRING(3) BSD Library Functions Manual STRING(3)
NAME
stpcpy, strcat, strncat, strchr, strrchr, strcmp, strncmp, strcasecmp, strncasecmp, strcpy, strncpy, strerror, strlen, strpbrk, strsep,
strspn, strcspn, strstr, strtok, index, rindex -- string specific functions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <string.h>
char *
stpcpy(char *dst, const char *src);
char *
strcat(char *s, const char * append);
char *
strncat(char *s, const char *append, size_t count);
char *
strchr(const char *s, int c);
char *
strrchr(const char *s, int c);
int
strcmp(const char *s1, const char *s2);
int
strncmp(const char *s1, const char *s2, size_t count);
int
strcasecmp(const char *s1, const char *s2);
int
strncasecmp(const char *s1, const char *s2, size_t count);
char *
strcpy(char *dst, const char *src);
char *
strncpy(char *dst, const char *src, size_t count);
char *
strerror(int errno);
size_t
strlen(const char *s);
char *
strpbrk(const char *s, const char *charset);
char *
strsep(char **stringp, const char *delim);
size_t
strspn(const char *s, const char *charset);
size_t
strcspn(const char *s, const char *charset);
char *
strstr(const char *big, const char *little);
char *
strtok(char *s, const char *delim);
char *
index(const char *s, int c);
char *
rindex(const char *s, int c);
DESCRIPTION
The string functions manipulate strings terminated by a null byte.
See the specific manual pages for more information. For manipulating variable length generic objects as byte strings (without the null byte
check), see bstring(3).
Except as noted in their specific manual pages, the string functions do not test the destination for size limitations.
SEE ALSO
bstring(3), index(3), rindex(3), stpcpy(3), strcasecmp(3), strcat(3), strchr(3), strcmp(3), strcpy(3), strcspn(3), strerror(3), strlen(3),
strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3)
STANDARDS
The strcat(), strncat(), strchr(), strrchr(), strcmp(), strncmp(), strcpy(), strncpy(), strerror(), strlen(), strpbrk(), strspn(), strcspn(),
strstr(), and strtok() functions conform to ISO/IEC 9899:1990 (``ISO C90'').
BSD
December 11, 1993 BSD