Sponsored Content
Full Discussion: exit in cpp
Top Forums Programming exit in cpp Post 302345172 by fpmurphy on Tuesday 18th of August 2009 03:23:27 PM
Old 08-18-2009
Sounds like you are looking for the atexit() function.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Hi Modem Problem And cpp

Hi am very new to unix.I got installed linux mandrake and the first problem is whith the modem i don't know why but it does not work. i config it on /dev/modem and some time it says "the modem is bussy" and some time it says: "Modem ready" but the modem did'n switch on Ok the other question... (3 Replies)
Discussion started by: user666
3 Replies

2. Programming

cpp in unix

sir i am trying to compile and execute cpp file in unix the command cpp <filename > is not working do you suggest any other command? thanking you (5 Replies)
Discussion started by: sandhyapidugu
5 Replies

3. UNIX for Dummies Questions & Answers

Where can I find a list of exit codes? (Exit code 64)

I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies

4. Programming

gcccommand found how to do with cpp

gcc help iam using kubuntu os (www.ubuntu.com) in that i dont find gcc but cpp command is there how to compile code with that & how to use gij for java in ubuntu (1 Reply)
Discussion started by: seshumohan
1 Replies

5. Shell Programming and Scripting

If file = .cpp then print?

I'm trying to develop a script that makes it so only .cpp programs can print. I'm doing it for my computer programming class because everyone keeps printing the executable instead of the source code and it's wasting a lot of paper. How can I accomplish this? Thanks for the help. :D (5 Replies)
Discussion started by: Irish_Cereal
5 Replies

6. Shell Programming and Scripting

reading a cpp file

I need to find all the methods in a cpp file ... using shell script Pls guide me regarding the grep criteria for searching methods I mean what are the patterns to be grepped in *.cpp which match methods Hope i have made myself clear Thanks and Regards -- Ultimatix (2 Replies)
Discussion started by: ultimatix
2 Replies

7. Shell Programming and Scripting

CPP to PERL

Hi all, can we convert a cpp program to perl scripting ? (4 Replies)
Discussion started by: Shell_Learner
4 Replies

8. Programming

.h or .cpp

I have the code below and cannot decide if to put it in a .h file or in a .cpp file #ifndef VERBOSE_H #define VERBOSE_H #include "sstring.h" enum Verbose { none = 0, low = 1, medium = 2, high = 3, diag = 4 }; bool GetVerbose(String& S, Verbose& V) { S.ToUpper(); if (S ==... (3 Replies)
Discussion started by: kristinu
3 Replies
pclose(3)						     Library Functions Manual							 pclose(3)

NAME
pclose - Closes a pipe to a process LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <stdio.h> int pclose ( FILE *stream ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: pclose(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to a FILE structure for an open pipe returned by a previous call to the popen() function. DESCRIPTION
The pclose() function closes a pipe between the calling program and a shell command to be executed. Use the pclose() function to close any stream you have opened with the popen() function. The pclose() function waits for the associated process to end, and then returns the exit status of the command. If the original processes and the process started with the popen() function concurrently read or write a common file, neither should use buffered I/O. If they do, the results are unpredictable. RETURN VALUES
Upon successful completion, the pclose() function returns the exit status of the command. If an error is detected, pclose() sets errno to an appropriate value and returns a value of -1. ERRORS
If the pclose() function fails, errno may be set to the following value: The status of the child process could not be obtained. RELATED INFORMATION
Functions: fclose(3), popen(3), wait(2) Standards: standards(5) delim off pclose(3)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy