Thanks to kcpilot for that rather unhelpful reply, I had spent many hours Googling exactly that phrase and only getting demonstrations, of the colour changes on Static strings and not variables. So...
Type: Posts; User: cljones81
Thanks to kcpilot for that rather unhelpful reply, I had spent many hours Googling exactly that phrase and only getting demonstrations, of the colour changes on Static strings and not variables. So...
Hi:
I'm trying to get my printf text output to be different colours depending on what is being outputted but the tutorials I've read aren't very clear and dont give any examples especially when it...
I have solved my readlink problem, thanks to the very helpful hints and tips given by dwks, thank you, it was very much appreciated.
Christian
Thanks for the reply:
I tried the code but the file that the symlink was created from is still not being displayed instead I'm getting the ->????
So Im posting my code here so you can have a...
Hello Everyone:
if ((astatbuff->st_mode & S_IFMT) == S_IFLNK) {
if ((len = readlink(dirslot->d_name, linkbuff, sizeof(linkbuff))) < 0)
printf(" -> ???");
else
printf("%s...
Hi Everyone:
This problem is puzzling me if I use this code which includes getwd:
while (1) {
dirslot=readdir(dir);
if (dirslot==NULL) return;
Hi:
Thanks to everyone who replied and thanks for the handy info but what I really wanted to know is once the file byte sizes have been rounded up how can I calculate the total file sizes e.g file...
Hi Everyone:
I hope you can help me with this but its driving me nuts and Im not seeing the solution, I'm trying to code my own version of ls -l:
And I'm stuck Im trying to output the total...