10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Good day! I'm a newbie in C. I'm trying to get an unlimited input from the user using malloc then printing the inputs after the user presses enter. My code works, but there's a warning that I don't know how to fix. Please help me. Thank you.
Here's my code:
#include <stdio.h>
#include... (6 Replies)
Discussion started by: eracav
6 Replies
2. Programming
Hi i found code in google how to malloc an 2D array and i tried that :
#include<stdio.h>
#include<stdlib.h>
int **A;
int **B;
int main(int argc,char *argv)
{
printf("name of text : %s\n",argv);
//read arrays
int i,j;
int l,m;
int M,n;
FILE *fp;
fp=fopen(argv,"r");
... (0 Replies)
Discussion started by: giampoul
0 Replies
3. Programming
Hi all,
After compiling my Pro-c program, while trying to run it I am receving segmentation violation at-
sqlcxt((void **)0, &sqlctx, &sqlstm, &sqlfpn);
The exact error is-
Program received signal SIGSEGV, Segmentation fault.
0x7af99090 in _sigfillset+0x5c0 () from /usr/lib/libc.2
... (4 Replies)
Discussion started by: justarrived
4 Replies
4. UNIX for Advanced & Expert Users
i have a little pro*c code (as shown below)
to connect an oracle database. (in unix solaris platform)
in the preprocessor compilation step everything is ok.
but when i try to compile the code using cc i get the
error below:
ld:
Unresolved:
sqlcxt
i think there is a problem while linking... (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies
5. Programming
Some one please explain me what is Dynamic memory allocation and the use of malloc() function.How do we allocate memory dynamically and also the other way? (3 Replies)
Discussion started by: rash123
3 Replies
6. AIX
Hi ,
I am facing some problem with C++ compiler ( version 5.0 ) on AIX machine ( 4.3 version).
When i run the following compile command,
cc -v -D< CONDITIONAL COMPILATION MACROS > -I< HEADER FILES SEARCH PATH >-qlanglvl=extended -g -qnoro -qnoroconst -c test_suman.cpp
For security... (0 Replies)
Discussion started by: suman_jakkula
0 Replies
7. Programming
Hi!
I hope this is the correct forum to post the question even if I'm a newbie...
I am a C-newbie (and really on the edge to be a C-addict ;) ) and have a question.
When should I use malloc?
To state it differently, when should I NOT use malloc?
For instance, if I have an array of... (5 Replies)
Discussion started by: Tonje
5 Replies
8. UNIX for Dummies Questions & Answers
Can someone tell me what this means????? :confused:
Catastrophe in malloc: sbrk()error 1b
IOT/Abort trap (coredump)
Thanks! (1 Reply)
Discussion started by: PAUL_ETTE
1 Replies
9. Programming
Hi All!
Does some one know I am under UNIX system can not allocate more then 1 Mb memory? It broke program down.
Any information would be greatly appreciated.
Thanks. (2 Replies)
Discussion started by: prodigal
2 Replies
10. Programming
hello sir
since by mentioning a integer pointer and storing the integers
by incrementing the pointer value
then what is the purpose of malloc?
u can decalre it as
in t *p;
several integers can be stored by incrementing the value of p,
hence what is the diffrence between this... (2 Replies)
Discussion started by: rajashekaran
2 Replies