10-05-2005
Quote:
Originally Posted by Corona688
No prob. This is the fastest I've ever seen a thread move here, it's lucky we were both online at the same time
yeah any other UNIX/C boards that are a little more active?
6 More Discussions You Might Find Interesting
1. Linux
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
2. Programming
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
3. Shell Programming and Scripting
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
4. Programming
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
5. Programming
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
6. Programming
#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
LEARN ABOUT CENTOS
std::exception
std::exception(3) Library Functions Manual std::exception(3)
NAME
std::exception -
SYNOPSIS
Inherited by __gnu_cxx::__concurrence_broadcast_error, __gnu_cxx::__concurrence_lock_error, __gnu_cxx::__concurrence_unlock_error,
__gnu_cxx::__concurrence_wait_error, __gnu_cxx::forced_error, __gnu_cxx::recursive_init_error, std::bad_alloc, std::bad_cast,
std::bad_exception, std::bad_function_call, std::bad_typeid, std::bad_weak_ptr, std::ios_base::failure, std::logic_error, and
std::runtime_error.
Public Member Functions
virtual const char * what () const noexcept
Detailed Description
Base class for all library exceptions.
This is the base class for all exceptions thrown by the standard library, and by certain language expressions. You are free to derive your
own exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types).
Definition at line 60 of file exception.
Member Function Documentation
virtual const char* std::exception::what () const [virtual], [noexcept]
Returns a C-style character string describing the general cause of the current error.
Reimplemented in std::bad_function_call, std::ios_base::failure, std::bad_typeid, std::bad_cast, std::runtime_error, std::future_error,
std::bad_exception, std::logic_error, std::bad_weak_ptr, and std::bad_alloc.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 std::exception(3)