02-12-2009
Hi Guys,
thanks for explaining the issue. It really helped. Of Course I am gonna use stdlib.h. I was just curious about the error and wanted to know the reason why it failed when i eliminated stdlib.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We are running a SQR program on Unix Platform with Oracle RDBMS.
It's an interfacing program to integrate data from foreign sites to
PeopleSoft database, using a flat file input.
After many hours of processing, the program stops with a coredump error (memory fault). With top command we noticed... (1 Reply)
Discussion started by: araziki
1 Replies
2. Programming
Dear All,
I made a program which do some simple jobs like reading data from other process's shared memory and writing messages to the queues of other process.
what happens is my program works fine and do all the task as expected but then then program ends it give Memory fault(coredump). I... (0 Replies)
Discussion started by: ralo
0 Replies
3. Shell Programming and Scripting
I am using awk command to sort a large file (7MB) and compare two files of
7 MB. The code is working fine for smaller files. But it gives following error for larger files
Segmentation fault (core dumped)
I am doing this on cygwin
Please help in this regard
Thanks
Sandeep (1 Reply)
Discussion started by: sandeep_hi
1 Replies
4. Programming
To find a number if it is a prime number, I cannot find any wrong.
#include <stdio.h>
#include <stdlib.h>
int isPrime(int valToCheck)
{
int i;
int retVal = 1;
for(i=1;i<valToCheck;i++)
{
if(valToCheck%i == 0 && i != 1)
{
retVal = 0;
... (1 Reply)
Discussion started by: zhshqzyc
1 Replies
5. AIX
Hi All
Can anybody help me?
When ever am trying to run topas system gives me an error Segmentation fault(coredump)
does anybody ahve solution for this? (4 Replies)
Discussion started by: vjm
4 Replies
6. Ubuntu
Hey guys,
I am new to the Linux world and have a question to post.
When I ssh from a HP-UX machine to a ubuntu machine I get the following error message
Memory fault(coredump)
i.e. ssh 192.168.1.3
I get this message as shown below
Memory fault(coredump)
Can someone please explain... (2 Replies)
Discussion started by: fkaba81
2 Replies
7. Solaris
Getting memory fault (coredump) and segmentation fault(coredump)
when i tried javac or java -version. what could be the problem?
Regards
Eswar (2 Replies)
Discussion started by: BhuvanEswar
2 Replies
8. Shell Programming and Scripting
I'm getting this error when trying to run a Acucobol program thru UNIX..
Segmentation Fault(coredump)
Precompiler error prevents compilation of xxxxxx.co.
Please help me in this case.. (1 Reply)
Discussion started by: Manish4
1 Replies
9. Homework & Coursework Questions
I am writing a program that copies a program and prints the program with a line count.
this is the program I wrote:
#include <stdio.h>
main()
{
int c;
int nl_cnt = 0;
while((c = getchar()) != EOF){
if(c = '\n'){
nl_cnt++;... (3 Replies)
Discussion started by: heywoodfloyd
3 Replies
10. UNIX for Advanced & Expert Users
Hi,
In my application we have one job which is used to process the files. But that job is failing with memory fault while processing a file or while shutting down the job. Sometime it generates the coredump and sometimes not. When I analysed the core dump I got below code snippet where it... (3 Replies)
Discussion started by: shilpa_20
3 Replies
LEARN ABOUT SUNOS
stdlib.h
stdlib.h(3HEAD) Headers stdlib.h(3HEAD)
NAME
stdlib.h, stdlib - standard library definitions
SYNOPSIS
#include <stdlib.h>
DESCRIPTION
The <stdlib.h> header defines the following macros:
EXIT_FAILURE Unsuccessful termination for exit(); evaluates to a non-zero value. See exit(3C).
EXIT_SUCCESS Successful termination for exit(); evaluates to 0.
NULL Null pointer.
{RAND_MAX} Maximum value returned by rand(); at least 32767. See rand(3C).
{MB_CUR_MAX} Integer expression whose value is the maximum number of bytes in a character specified by the current locale.
The following data types are defined through typedef:
div_t structure type returned by the div() function
ldiv_t structure type returned by the ldiv() function
lldiv_t structure type returned by the lldiv() function
size_t as described in <stddef.h>
wchar_t as described in <stddef.h>
See div(3C), which covers div(), ldiv(), and lldiv(), and stddef.h(3HEAD).
In addition, the symbolic names and macros listed below are defined as in <sys/wait.h>, for use in decoding the return value from system().
See wait.h(3HEAD) and system(3C).
WNOHANG
WUNTRACED
WEXITSTATUS
WIFEXITED
WIFSIGNALED
WIFSTOPPED
WSTOPSIG
WTERMSIG
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
a64l(3C), abort(3C), abs(3C), atexit(3C), bsearch(3C), div(3C), drand48(3C), exit(3C), getenv(3C), getsubopt(3C), grantpt(3C), malloc(3C),
mblen(3C), mbstowcs(3C), mbtowc(3C), mkstemp(3C), ptsname(3C), putenv(3C), qsort(3C), random(3C), realpath(3C), strtod(3C), strtol(3C),
strtoul(3C), unlockpt(3C), wcstombs(3C), wctomb(3C), limits.h(3HEAD), math.h(3HEAD), stddef.h(3HEAD), types.h(3HEAD), wait.h(3HEAD),
attributes(5), standards(5)
SunOS 5.10 10 Sep 2004 stdlib.h(3HEAD)