My program works, and I use EOF, but the problem is, that I have to catch a signal, not char, smth like CTRL+Z in Windows.
Type: Posts; User: midnight
My program works, and I use EOF, but the problem is, that I have to catch a signal, not char, smth like CTRL+Z in Windows.
Hello, guys!
I have a question for you, how could I implement a catch of CTRL+D? I have a program, which reads strings untill is pressed CTRL+D, and I don't wanna have ^D in a console :(. After I...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Data {
char *name[50];
} ;
struct Data *the_array = NULL;
int num_elements = 0; // Keeps track of the number of...
I'd like to, but the program must be written in C. I have already it in C++, it works perfectly, but I don't know how it to do in C. This is the problem :(
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Data {
char *name[50];
} ;
struct Data *the_array = NULL;
int num_elements = 0; // Keeps track of the number of...
Do you know how could I get the size of structure? I need to sort values in it... but i dont know how :(
yup, I'll try to implement a dynamic array. thx a lot :)
Vectors are commonly used instead of arrays, because they expand automatically when new data is added to them.
Hello, guys!
I'm a begginner with C. And I wonder if there is Vector in C? Or how could I implement it? Need help. pls.
Hello,
Do anybody know, how could I get an absolute path? I tried this, but I have strange results...
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char...
yup, yup, I'm dump :))), it works now :), thanks RockyMarrone :) thnx a lot :))
oops, rmdir
i work on Windows, and I tried this code
if( remove( argv[1] ) == -1 )
printf( "ERROR. " );
But seems, that it doesn't work, or I do smth wrong...
I actually tried, but nothing usable :(
int main(int argc, char* argv[])
{
if (argc == 2 && (strcmp(argv[1], "-h")==0)){
callHelp();
}
else if (argc ==2 && (strcmp(argv[1],...
Hello, everyone,
I'm new in C prog-g, and I have a task, to make a directory(mkdir), but I need to check if a directory with the same name already exists... Thnx a lot.
Hello, everyone,
I am new with C, and I need to get a dir name :(, I need to implement LS command (Shell). Plz, I need help. Thx a lot.