gnu history library signal segfault


 
Thread Tools Search this Thread
Top Forums Programming gnu history library signal segfault
# 1  
Old 03-12-2006
gnu history library signal segfault [solved]

i am trying to use the history functions in a c++ program along with a custom signal handler for SIGINT.

the prog works fine catching signals without the line:

add_history(*args);

but as soon as this line is added, the prog segfaults on SIGINT.

does anyone have experience using gnu history with custom signal handlers?

[solved]

the add_history function did not work well with the *args pointer.. it would complile and execute once fine, but segfault.. fixed by assigning *args contents to buffer var and passing this in to add_history.

Last edited by a1g0rithm; 03-12-2006 at 04:35 AM..
# 2  
Old 03-18-2006
how to use graphics.h in linux

friend,
will u tell me how to ue graphics.h in c in linux environment
# 3  
Old 03-18-2006
Quote:
Originally Posted by abhishek_mca78
friend,
will u tell me how to ue graphics.h in c in linux environment
probably you should have started this in a new thread !!!
use curses library for graphics programming
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

GNU C library for parsing of XML files

Hi all, Is there a known GNU C library available for parsing XML files for particular attributes ? (1 Reply)
Discussion started by: vsanjit
1 Replies

2. Linux

Plz Help me to find GNU C++ Runtime Library

Hi, I am working with red hat Linux and i want to install one program but I am getting the error This product requires the GNU C++ Runtime Library (libstdc++-libc6.2-2.so.3) or later. Your system must be upgraded before installation can proceed. So please tell me how can i remove this... (2 Replies)
Discussion started by: smartgupta
2 Replies

3. Linux

Installing GNU C library

I m working on a project of making a boot/root pendrive linux from source. I have got the basic working root filesystem with busybox. Now i wish to install GNU C library. But couldnt find a proper document to refer to. Also i tried the steps in LFS with just specifying the installation directory... (2 Replies)
Discussion started by: amu
2 Replies
Login or Register to Ask a Question