Search:

Type: Posts; User: cljones81

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,220

    ansi control chars and colours

    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...
  2. Replies
    7
    Views
    2,220

    ANSI control character and colour

    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...
  3. Replies
    4
    Views
    1,235

    Thanks to dwks

    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
  4. Replies
    4
    Views
    1,235

    readlink problem

    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...
  5. Replies
    4
    Views
    1,235

    readlink problem

    Hello Everyone:


    if ((astatbuff->st_mode & S_IFMT) == S_IFLNK) {
    if ((len = readlink(dirslot->d_name, linkbuff, sizeof(linkbuff))) < 0)
    printf(" -> ???");
    else
    printf("%s...
  6. Replies
    1
    Views
    6,573

    getwd and dirent->d_name

    Hi Everyone:

    This problem is puzzling me if I use this code which includes getwd:


    while (1) {
    dirslot=readdir(dir);


    if (dirslot==NULL) return;
  7. Replies
    7
    Views
    2,081

    ls -l and st.size in stat struct

    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...
  8. Replies
    7
    Views
    2,081

    ls -l and st.size in stat struct

    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...
Results 1 to 8 of 8