I tries this 2 ways. It is still seg fault.
...........:(
Type: Posts; User: figo2476
I tries this 2 ways. It is still seg fault.
...........:(
Currently, I create a processElement which has resource array & request
array. These 2 arrays will be expanded in the later stage for storage.
i.e.
process = (process_type*) malloc(...
This is my file:
Process 1 p 3 h 6 3 r 1
Process 2 p 2 h 1 7 r 3
Process 3 p 1 h * r 7 9 2
This is my code tries to read them:
int id;
int priority;
I tried this and I found something intresting:
Here is my code:
---------------------
int main(int argc, char *argv[])
{
FILE *inputFp;
hi:
Here are some dataset:
=================
dog;This is a dog;11
cat;no cat here;4
!EMPTY!;blabla;-1
blablabla
Here is the function to read data:
=======================