Search:

Type: Posts; User: @licomb

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,419

    int main(int argc, char *argv[]) you can use...

    int main(int argc, char *argv[])

    you can use the single star as previously stated all this is doing is point to an unbound array that stores command line inputs, I've always used the single star...
  2. Replies
    6
    Views
    1,531

    You really should try and acoid using feof, its...

    You really should try and acoid using feof, its not a very stable way of reading in lines of text even though it appears it does.
  3. Replies
    3
    Views
    1,482

    Ok i managed to get the program to work but it...

    Ok i managed to get the program to work but it required me to take out the !feof, after a bit of digging i found out that this functions wasn't all that reliable so I did the following, hope this...
  4. Replies
    3
    Views
    1,482

    I tried that it still does the same thing I...

    I tried that it still does the same thing

    I ment to say
    while ( (!feof(fn1)) || (!feof(fn2)) ),

    but i have also tried this (!feof(fn1) && !feof(fn2)), it still doesn't work, and i can't seem...
  5. Replies
    3
    Views
    1,482

    prog !feof probs

    Hi me again i hope someone can help, as you may not know my program reads in lines of text from 2 text files, it compares them and if they are different they write these lines to the third file
    ...
  6. Replies
    2
    Views
    1,102

    Going mad can anyone help

    Ok after testing checking my program seems to work fine, it reads in the command line ok, it checks all the files, it reads in the lines from both files and compares them for a difference, were if...
  7. Replies
    2
    Views
    2,458

    that damn stat()

    Ok my program works, only problem is i am unsure of the stat command

    say from the linux terminal
    stat -l txtfile

    it would display lots of info about that file, such as its permissions ...
  8. Thread: Help!!!

    by @licomb
    Replies
    2
    Views
    1,461

    Help!!!

    I am writing my program that compares strings input from 2 txts files if they are different they write to the third. the program does all the compareing and writing to the third file with no problems...
  9. Thread: Stat() Program

    by @licomb
    Replies
    3
    Views
    1,656

    Soz salem, got mixed up, i thought fgets was for...

    Soz salem, got mixed up, i thought fgets was for getting information from a file, silly me.
    Soz mate
    -ali
  10. Thread: Stat() Program

    by @licomb
    Replies
    3
    Views
    1,656

    Stat() Program

    Ok I have to write a program that uses the linux stat() function, it is supposed to read in a filename, were from were it will determine access permissions, it will end once the user enter a blank...
  11. Thread: stat()

    by @licomb
    Replies
    5
    Views
    33,090

    ok going off what people have said and offered. i...

    ok going off what people have said and offered. i have wrote the following.
    No idea if it work,

    Does anyone see a problem with it!!!

    #include <stdio.h>
    #include <string.h>
    #include...
  12. Replies
    6
    Views
    16,287

    Don't forget to include the relevent library ...

    Don't forget to include the relevent library

    #include <stdlib.h>

    for the exit function to work!!
    -ali
  13. Replies
    2
    Views
    2,800

    While you can use formating features such as /n...

    While you can use formating features such as /n /b and /t

    You can also format how much space between screen imput etc.. is displayed, these are called field Width specifiers..

    i.e
    ^ denotes a...
  14. Thread: stat()

    by @licomb
    Replies
    5
    Views
    33,090

    Wasn't cross posting i was told that this would...

    Wasn't cross posting i was told that this would be better place to ask a linux fucntion call, anyway there is somthing funny as it was i who posted this topic, somehow its attached itself to nick?
    ...
  15. Thread: stat()

    by @licomb
    Replies
    4
    Views
    1,902

    Me's silly for not telling you i use linux to...

    Me's silly for not telling you i use linux to compile and write code, i try to stay clear of VSC++ 6.

    thanks for the code i will have a play

    I am right in thinking that the struct stat is...
  16. Thread: strings

    by @licomb
    Replies
    8
    Views
    1,708

    I don't know what happened nick for some reason...

    I don't know what happened nick for some reason it posted as your name ??? strange
  17. Replies
    14
    Views
    5,682

    Do i need to clear the buf1 and buf2 once its...

    Do i need to clear the buf1 and buf2 once its finished reading in a line, not sure realisticaly you should but i can't tell. be easy to cleat it just fill it with nulls in a for loop
  18. Replies
    14
    Views
    5,682

    Here's teh code with the errors fixed (I hope) ...

    Here's teh code with the errors fixed (I hope)

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    #define MAX_LEN 80

    int reperror, x;
    FILE *fn1, *fn2, *fn3;
  19. Replies
    2
    Views
    1,938

    Yeah if the value is negative it will reflect...

    Yeah if the value is negative it will reflect this in were ever store the value.

    I might not be understanding your question.
    -ali
  20. Replies
    14
    Views
    5,682

    I would never of thought to use that :( thanks

    I would never of thought to use that :( thanks
  21. Replies
    14
    Views
    5,682

    Thanks for the help Zen, its greatly appricated,...

    Thanks for the help Zen, its greatly appricated, good to know there are some helpful people out there willing to help.

    Do you think the program will do what is supposed to do.

    -ali
  22. Replies
    14
    Views
    5,682

    so does this mean i would to change the while...

    so does this mean i would to change the while statement to
    do
    {

    } (buf1 != EOF || buf2 != EOF )

    Not sure if iam getting what you are saying :(
    -ali
  23. Replies
    14
    Views
    5,682

    I fixed the while statement to || from |& ...

    I fixed the while statement to || from |&

    Thanks, fixed all those errors, oh i miss my compiler, looking at the program will it do what i looks like it will do.
  24. Replies
    14
    Views
    5,682

    Thanks, just noticed that myself, also i have...

    Thanks, just noticed that myself, also i have changed the code so that it use fn1, fn2 and fn3 probalym was still using argv , which would no doubt cause an error.
    Sorry, a while since i programed...
  25. Replies
    14
    Views
    5,682

    I've just noticed i haven't closed all the...

    I've just noticed i haven't closed all the files,will add that to end of program.
Results 1 to 25 of 27
Page 1 of 2 1 2