Sponsored Content
Full Discussion: free() function?????
Top Forums Programming free() function????? Post 20592 by pegasus on Monday 29th of April 2002 05:38:49 PM
Old 04-29-2002
Think that I have a dynamic array of a struct. This struct includes link lists. I just want to clean the memory I have used for that link lists and dynamic array. I used free it gives no error in compile time neither in run time. But the memory usage of the program increases all the time and when it comes to a point that is too high program gives Segmentation Fault!(What a suprise).
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing global variable to a function which is called by another function

Hi , I have three funcions f1, f2 and f3 . f1 calls f2 and f2 calls f3 . I have a global variable "period" which i want to pass to f3 . Can i pass the variable directly in the definition of f3 ? Pls help . sars (4 Replies)
Discussion started by: sars
4 Replies

2. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

3. Shell Programming and Scripting

Return a value from called function to the calling function

I have two scripts. script1.sh looks -------------------------------- #!/bin/bash display() { echo "Welcome to Unix" } display ----------------------------- Script2.sh #!/bin/bash sh script1.sh //simply calling script1.sh ------------------------------ (1 Reply)
Discussion started by: mvictorvijayan
1 Replies

4. Shell Programming and Scripting

SHELL SCRIPT Function Calling Another Function Please Help...

This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord but only one record is getting wrote in DB.... Please advise ASAP...:confused: function InsertFtg { FTGSTR="" echo "Saurabh is GREAT $#" let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies

5. Solaris

MountPoint / is 8% with 899.49MB free crossing threshold of 10% free

Hi, I have a problem one of the server file system cross the limitation MountPoint / is 8% with 899.49MB free crossing threshold of 10% free out put please help how to resolve this dev/vx/dsk/bootdg/rootvol 9.8G 8.8G 956M 91% / /devices ... (3 Replies)
Discussion started by: sriniva0
3 Replies

6. Programming

How to step in one function after the function be executed in gdb?

In gdb, I can call one function with command "call", but how can I step in the function? I don't want to restart the program, but the function had been executed, gdb will execute next statement, and I don't know how to recall the function. (4 Replies)
Discussion started by: 915086731
4 Replies

7. Shell Programming and Scripting

Will files, creaetd in one function of the same script will be recognized in another function?

Dear All. I have a script, which process files one by one. In the script I have two functions. one sftp files to different server the other from existing file create file with different name. My question is: Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies

8. Shell Programming and Scripting

Function - Make your function return an exit status

Hi All, Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition. #Body function1() { if then echo "exist" else echo "not exist" } #if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
crt0_ia(3)						     Library Functions Manual							crt0_ia(3)

NAME
crt0_ia: crt0.o - execution startup routines for Integrity systems SYNOPSIS
Remarks This manpage describes for Integrity systems. For on PA-RISC systems, see crt0_pa(3). DESCRIPTION
The C, aC++, and FORTRAN compilers link in the object file for statically-bound programs to provide startup capabilities and environments for program execution. It contains startup code that must be linked using to every statically-bound program. In a dynamically linked program (the default method), the object file is not used, and all actions normally associated with it are instead done by the dynamic loader dld.so(5). processes initializers and terminators. Initializers are routines that are called before the program entry point and terminators are rou- tines that are called when the program terminates via the routine. Initializers are invoked in reverse order of the link line so that dependent libraries are initialized before the libraries that depend on them. Terminators, on the other hand, are invoked in the forward order. does not define any variables. It, however, sets the following global variables: A variable of type long containing the number of arguments. An array of character pointers to the arguments themselves. An array of character pointers to the environment in which the program will run. This array is terminated by a null pointer. A variable of type long containing the system id value for an executable program. A variable of type long containing the requested thread local storage size. This variable is initialized with data from the ker- nel. A variable of type void * containing load information passed from the kernel. A variable of type void * whose value equals to the global pointer. A symbol named is also declared in as an enumeration constant, and is incompatible with the declaration in In order to include both header files, it is necessary to define the macro before including This will force the header file to omit the conflicting definition of The enumeration constant is equivalent to in that context, and may be used instead. See ttrace(2). AUTHOR
The features described in this entry originated from AT&T UNIX System III. FILES
SEE ALSO
System Tools aCC(1) invoke the HP-UX aC++ compiler cc(1) invoke the HP-UX C compiler dld.so(5) the dynamic loader exec(2) execute a file f90(1) invoke the HP-UX FORTRAN compiler ld(1) invoke the link editor Miscellaneous end(3C) symbol of the last locations in program Integrity Systems Only crt0_ia(3)
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy