so using system calls i can read my files? can you give an example how to use please?
Type: Posts; User: Yannick
so using system calls i can read my files? can you give an example how to use please?
I want to change the directory wiith the objective to get the names of the files that are inside that directory.
thank you for that information but what i really want is that after doing that chdir the shell is poiting to that directory like:
kermit@fastbox ~/cprogs/board $ gcc -Wall -o my_cd my_cd.c...
How i do that with System call? There's no chance with exec functions?
so, on the shell linux if i do "cd /home/Documents/Downloads" i go to Downloads Folder, and shows something like this on the shell
user@userlocalhost:~home/documents/downloads:
i just want to...
Hi, i just want to know what can i do for open a directory using exec functions.
Example, i want to open the Documents/Downloads folder
so im on linux he is on "cd /home/Documents/Downloads"
Is...
How i can do a process that execute the shell command "ps u" every 2secs ? Its with "exec" functions? Anyone can show me how to do that?
Hi, i want to create 3children processes from one "Father process" but when i test my code i see on the Shell that the "Father" create children1, children1 create children2 and children2 create...
Hi, i've a problem with fget, cause when i try to open the file i get Segmentation Fault...Anyone knows whats wrong?
void fgetrestaurante(List Mainlist) {
List...
it was suppose to show diferent lists by order of min vect_distance but he always print the same list...
I've changed to this...it works but if there's 3 lists he will print 3times the same list...and not an order list..."Pesquisa special list" its a search funtion with 2 key-word and returns a list......
if i put List l=lista it says that there were already a definition...
Before the loop i want that l is at start of the list and next to the header....what i've to do?
i dont know how to solve this...
i didnt understand...sorry
cria_lista its create list, and "insere_lista" its put the actual lnode into a new list auxiliar...
I would like to order the list by the var distance but program will say always "Lista Vazia"
void imprime_lista (List lista){
int vect_distance[100];
int vect_x[100];
int vect_y[100];...
and the file data.dat comes with chinese characters...
I need someone to correct anithing that is wrong in this code... and i want to know how to create a non determined number of lists, something like we put a new list and we can add more lists when we...
Anyone knows how to do a simple Run Lenght Encoding program?
ah, ok...is to terminate and exit a loop...thks.
omg...it worked... explain me this, cause i've not understood, break will break the condition of if, and will pass to next m=m/10? or it will break the do while and goes to do the m=m-1; and the do...
In function of Mostrador_1 anyone can help me? I do scanf of an "y" and i've to print all numbers from 100000 to 0 that have y...I've the function working but it prints more than a time, ex. y=2, it...
ok, now i've tried to do a second step that we put a "y" and we have to verify on a M<=100000, all numbers that has y...
I've tried something, but it prints a cupple times the same numbers, but i...
Now its correct...What you think?
#include <stdio.h>
int main(){
long n;
int escolha;