with what is probably a really stupid question (but hey!
its not in the FAQ ;>
Whenever i run my program (a small simple one as i will
show you below) i always get an 'Out of memory' error.
Any ideas as to why ? I havent done any C programming
in a few years, but it should be 'alright' from what I
can remember :)
danke.
--
#!/usr/bin/perl
use Inline C => DATA => LIBS => '-lc';
&main;
__END__
__C__
#include <time.h>
int main()
{ char *result;
time_t *timep;
result=ctime(timep);
printf("The result we got is: %s\n",result);
return 1;
}
regards
Stef