I'm trying to write a recursive function to read some data from a file that -should- be preformated etc..
well the function call only takes a file name, so I'm opening the file within the function...
Type: Posts; User: Destinps
I'm trying to write a recursive function to read some data from a file that -should- be preformated etc..
well the function call only takes a file name, so I'm opening the file within the function...
D_SVID_SOURCE worked, i read that in the man but had no idea how to comprehend it
thanks for the help people!
no warnings when compiling with those arguments, but if the program works for you that's good enough for me. I'm just coding it as practice for a test so it's not going to be turned in or anything.
using putty to connect to a school computer from home..
the school computer is running linux and i'm using gcc to compile
I'm new to C and Linux so I'm not sure what info is needed, but i compiled...
NAME
drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48,
lcong48 - generate uniformly distributed pseudo-random numbers
SYNOPSIS
#include <stdlib.h>
...
I'm having trouble using drand48 to feed an array, i tested the array using the loop counter and it stores that just fine.
When I use drand48 though, i get 7 0's in the first 7 spots, and the rest i...