Search:

Type: Posts; User: mbooka

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,703

    Seems like there is a problem with the strcat ...

    Seems like there is a problem with the strcat

    How would you dump the entire file into memory?
  2. Replies
    4
    Views
    1,703

    Cant close file pointer

    Hi

    i get a segmentation fault when i want to close a file i have opened
    here is the code



    char *temp;

    temp = (char *)malloc(1000);
  3. Replies
    7
    Views
    1,872

    It looks like the program does not pick up the >...

    It looks like the program does not pick up the > character. It will assumedly pipe it out to what ever is on the other end.
  4. Replies
    7
    Views
    1,872

    Unknown error in compilation

    Hi i get a

    "subscripted value is neither array nor pointer"

    when i compile my source.

    the error is pointing this line
  5. Replies
    1
    Views
    939

    Getting File stats

    Hi,

    Is there a struct that contains file stats? or a function that can get the size of a file.

    I am trying to allocate memory space for files i am trying to modify. But first i need to know the...
  6. Thread: memcpy

    by mbooka
    Replies
    10
    Views
    3,052

    I will keep that in mind when memcpy doesnt seem...

    I will keep that in mind when memcpy doesnt seem to work.

    Also with regards to SlyMaelstrom comment, i cant copy my code because i cant copy from cygwin. I work remotely on a unix machine on a...
  7. Thread: memcpy

    by mbooka
    Replies
    10
    Views
    3,052

    after looking at my code for a couple of minutes...

    after looking at my code for a couple of minutes i realise that it was my stupid fault and left out a small but significant ';'.

    :p...
  8. Thread: memcpy

    by mbooka
    Replies
    10
    Views
    3,052

    my error that i get or the error i think is wrong...

    my error that i get or the error i think is wrong with the code?

    if it is the first one all i get is

    "pass error"
  9. Thread: memcpy

    by mbooka
    Replies
    10
    Views
    3,052

    the errors is on the memcpy line

    the errors is on the memcpy line
  10. Thread: memcpy

    by mbooka
    Replies
    10
    Views
    3,052

    memcpy

    i am trying to use memcpy but it gives me a compile error

    this is what i am doing



    char *temp;
    char space[21];

    temp = malloc(5000);
  11. Replies
    3
    Views
    1,402

    ok thanks =D

    ok thanks =D
  12. Replies
    3
    Views
    1,402

    memory allocation

    hi

    i am try to create a dynamic array of char

    this is what i have done




    char *temp;
  13. Replies
    6
    Views
    1,470

    to be honest i already tried it before posting...

    to be honest i already tried it before posting it. There are so many ways to do one thing and i was just seeing if there are better ways to do one thing.

    Is there a site that has good c...
  14. Replies
    6
    Views
    1,470

    thank you. also is %x to print in hex ?

    thank you. also is %x to print in hex ?
  15. Replies
    6
    Views
    1,470

    assuming that there is something already in...

    assuming that there is something already in to_b_tested
  16. Replies
    6
    Views
    1,470

    comapring specific locations in an array

    Hi

    i have an array and wish to compare certain parts of the array to a string. For example i have the string "AB CD EF" and i want to test my string to see if it is of AB or CD or EF


    this is...
  17. Replies
    2
    Views
    1,301

    thanks :)

    thanks :)
  18. Replies
    2
    Views
    1,301

    arrays of strings

    Hi,

    this should be a simple question. How do i initialise an array of strings and then how do i copy strings into the array?
  19. Replies
    2
    Views
    827

    reorganising array data

    I have loaded some data into an array of 80. how do i go about removing the first element of the array and pusing everything else one position in the array?
  20. Replies
    6
    Views
    1,346

    I found out what i was doing wrong. When i...

    I found out what i was doing wrong.

    When i check to see if i can open or read the file i didnt put braces around the openning of the file first.



    if (out_fp = fopen(out_filename, "w") ==...
  21. Replies
    6
    Views
    1,346

    yep... doing the same thing as when i check...

    yep... doing the same thing as when i check out_fp :)
  22. Replies
    6
    Views
    1,346

    That doesnt solve the segmenation fault. I can...

    That doesnt solve the segmenation fault.

    I can open a new file and open the file to read it.

    it crashes somewhere between the while loop statment.
  23. Replies
    6
    Views
    1,346

    merging files into one

    Hi,

    I am trying to copy several rtf files into one rtf file. this is basically what i have done




    char in_filename[MAXPATHLEN];
    char out_filename[MAXPATHLEN];
    FILE *in_fp, *out_fp;
  24. Replies
    2
    Views
    3,187

    thanks... i did the fseek backwards and that...

    thanks... i did the fseek backwards and that works.
  25. Replies
    3
    Views
    1,110

    ok. thanks. i will see how i go

    ok. thanks. i will see how i go
Results 1 to 25 of 31
Page 1 of 2 1 2