better way than strtok?


 
Thread Tools Search this Thread
Top Forums Programming better way than strtok?
# 8  
Old 10-05-2005
Quote:
Originally Posted by annie
Smilie yeah any other UNIX/C boards that are a little more active?
Nothing I've seen compares to this one. I'd feel off-topic asking stuff like this anywhere except maybye comp.std.c on usenet, but I gave up usenet for lost long ago. Too much spam. This place's name is almost too obvious, who'd ever imagine you could find information on unix at unix.com?
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

strtok() gives segmentation fault!!

#include<iostream.h> #include<string> #include<stdio.h> int main() { char *cmd="delete backup backup-iso image a.iso b.iso c.iso d.iso"; char *tokenized_cmd,*sub_cmd; sub_cmd=strstr(cmd,"image"); tokenized_cmd=strtok(sub_cmd," "); ... (3 Replies)
Discussion started by: ashwini.engr07
3 Replies

2. Programming

strtok with while loops

Why is line (null) after the first while loop run? (keyword does jump to the next word.) #include <ftw.h> #include <stdio.h> #include <string.h> char filenames = ""; int list(const char *name, const struct stat *status, int type) { if( (type == FTW_F) && strstr(name, ".txt") &&... (3 Replies)
Discussion started by: cyler
3 Replies

3. Programming

How to use strtok twice in the same program?

string str1(" 1 2 3 4 512543 "); string str2; if(str2.empty()) str2=str1; cout << "str2:" <<str2 <<endl; p1=strtok((char *)str1.c_str()," "); while(p1) { ... (3 Replies)
Discussion started by: sathishkmrv
3 Replies

4. Shell Programming and Scripting

strtok equivalent in perl

Hi All, Is their any equivalent for strtok (in c) to use in perl script. Thanks in advance. JS (1 Reply)
Discussion started by: jisha
1 Replies

5. Programming

Regardign strtok() output directing to 2-D string array

Hi, I just wrote a program in C to split a comma seperated string in to group of strings using strtok() function. The code is: int main() { char *temp;//not used here but basically we extract one string after another using strtok() and assign to a string pointer defined like this. ... (3 Replies)
Discussion started by: SankarV
3 Replies

6. Linux

Strtok function....

can any help me out y dis program is giving me a segmentation fault..... #include<stdio.h> #include<string.h> int main() { char *str="Tanvir/home/root/hello"; const char *d ="/"; char *ret; ret=strtok(str,d); if(ret==NULL) printf("NULL NULL"); else ... (3 Replies)
Discussion started by: Tanvirk
3 Replies
Login or Register to Ask a Question
jds-help(1)							   User Commands						       jds-help(1)

NAME
jds-help - launch a Help browser based on the GConf ghelp URL handler SYNOPSIS
jds-help [URL] [gnome-std-options] DESCRIPTION
jds-help launches a Help browser based on the GConf ghelp URL handler. The GConf key for the handler is /desktop/gnome/url-handlers/ghelp/command. Typical values for this key are: yelp "%s" jdshelp "%s" If a URL is specified, jds-help displays the topic referenced by the URL. The URL must be a ghelp URL. If no URL is specified, jds-help displays a default document as implemented by the specified Help browser. By default, both jdshelp and yelp display a collection of most of the installed documents. OPTIONS
The following options are supported: gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: URL Uniform Resource Locator, the location of a Help topic. EXAMPLES
Example 1: Opening the gedit Online Help example% jds-help ghelp://usr/share/gnome/help/gedit/C/gedit.xml EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/jds-help Executable for jds-help application ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-* | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. jdshelp(1), yelp(1), gnome-std-options(5) NOTES
Written by Laszlo Kovacs, Sun Microsystems Inc., 2004. SunOS 5.10 14 Oct 2004 jds-help(1)