Thanks once more!
Type: Posts; User: Zuko
Thanks once more!
Can i use fscanf() to access the file?
For example the first line of the file may be: Zuko956:92555:something
How can i store Zuko956 in a variable so i can use it?
I want to make a new command in Linux(Minix) in C, for printing some info in the screen. The info is located in the file /etc/passwd and other files.
The info is names logged in, in the system and...
Thanks Corned Bee! You really helped a lot. I was running the commands i had constructed or modified from usr/bin and managed to make them work, till this morning i figured out that i could rename...
Sorry for my "ignorance" but could you explain what do you mean by saying: call /usr/bin/echo? Where should i use the full path?
Because the teacher said i had to go to ...../simple and modify the existing file. The only problem is that that there is no f******* existing echo file in there.
Ok is there any way of...
I was supposed to modify the echo.c code of MINIX. I moved to the directory : /usr/src/commands/simple and created the echo.c file with vi editor.
I compiled it (cc) and then edited Makefile with vi...
Thanks, you are right! And if i want to refer to the array in that function, i have to write *A[]??
For example why something like that is wrong??
int FillStruct(int **A)
{
int...
In this part of my program i -obviously- want to create a dynamic array.
But somewhere there is a problem(the array is allocacated but not returned), can anyone help me, is there any problem with...
1st:
struct something{
.
.
.
}*What;
What does this "*What" means, if i place it there??
2nd:
My struct should be like this:
Hello.
A few days ago, i created a program, something like a database with students. I used a struct
Struct student{
int code;
char name[50];
float grade;
...