What's ldconfig and how to check if i were running it or not ?
Thanks.
Type: Posts; User: soothsayer
What's ldconfig and how to check if i were running it or not ?
Thanks.
Hi,
I created a shared Library called libTree.so to be used with a program called Insert.
When doing it in a Mandrake 10 machine (2.6.3-7mkd, i686) , everything works fine
The problem occured...
Hi,
I got a following Make file. Could anyone give me a hint of what
COMPILEDIRS = $(SUBDIRS:=.compile)
means ? Does it replace all subdirs with .compile ???
Many thanks.
Anh
Here's the begining of the source code (all include and define):
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include...
i did include both <string.h> and <strings.h>
But still no help !
Anh
Hi,
i've done some search in this forum but didn't find any solution.
Basically, my program use some functions like: strcpy, strlen ...
When compiling, it throws some warnings:
server.c:114:...
Hi,
I keep getting the warning of:
Implicit declaration of funciton getline()
whenever i use getline() function
What does this warning mean actually ?
Is this a serious warning, or...
Tonto,
Thanks for reply.
But it'd be so nice if the string is formatted like that, i.e: words could be seperated by more than one blank characters; so i think it'd be better to use strtok().
Ok, im still wondering what actually does happen when i call:
array[i] = (char *)malloc(sizeof(char))
And does "Access array[i]" means getting the content of array[i] or even allocating...
Thank very much for your reply
1.Why ? I see in many book they recommend to cast
2. OK, thanks.
3. Because im using strtok (which does crazy things to the string), its not possible to implement...
So if i used
char **array = (char *)malloc(sizeof(char*));
will it fix the problem ? Im still confused about accessing array[i] with any i>0.
Why does the program have undefined behavior ?
Is there a way to detect this behavior ? I've run the program many time in diferrent machines, with different test file, but didn't find any problem.
...
Hi, i have the following code which manages to get words from a line and store them into an array (number of words is unknown).
char **createArray(char *line, int *length){
char **array =...