Does anybody know how Vi (Vim) creates the welcome screen,
I wish to implement something similar into my application.
thanks
techevo.
Type: Posts; User: techevo
Does anybody know how Vi (Vim) creates the welcome screen,
I wish to implement something similar into my application.
thanks
techevo.
cheers yep,
got it working great :D
techevo
Hi all,
For my little program to run, it needs to open a file, read the contents then display it. easy yes...
However I need to hardcode this path of the file in.
But the location of the...
Hi all,
for my little program i need a check for input of "cd" the change direction command in linux.
for some reason, this code is giving me a segmentation fault when myarray contains...
Yes i am creating my own shell.
Thank you for all the suggestions,
the result of
command -a
the command i use to get this was:
ls > file.txt
Hi all,
I am playing around with redirection and am getting the below error message?
can anyone tell me a cause for this so i can fix it?
ls: write error: Bad file descriptor
ok i understand that :)
how can i assign memory to array dynamically though?
or am i misunderstanding something else? :S
techvo
ok i understand that :)
how can i assign memory to array dynamically though?
or am i misunderstanding something else? :S
techvo
char *string;
then use readline to take input from the command line storing it into string.
techevo
surely if memory has been freed i can use it again? :S
here is the code
array = malloc(sizeof(string));
array[0] = strtok(string," ");
for(i=1; i<=...
Hello all,
I currently am reading input from the command line.
everything entered needs to be then put into a 2 dimensional array.
using strtok to separate each item of the string by a " "...
thanks :D
bit cheeky, but does anybody know how i can print the contents of an array or the data held by variables??
but thanks anyway helped :)
techevo
Hello all,
I need to debug my c code in a debugger. however the file reads the information from a text file for it to execute.
the syntax is:
$progname <textfile1>
this is the course code in complete
gcc sched.c -o sched
#./sched <filename>
my struct looks like this might be wrong way to do it mind
<code>
typedef struct {
char name[12];
int quantum;
int priority;
} processDetails; ...
hi guys
i have so far read a file into buffer
used strtok() to identify each part of the struct
added these into a struct, printed this struct.
read the next values into the struct and so...