User Profile

Collapse

Profile Sidebar

Collapse
learner007
learner007
Last Activity: May 9 '12, 05:14 PM
Joined: May 9 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • learner007
    replied to temp=tmpfile() lose all its contents?
    in C
    I found the mistake in the statement:
    ch=getc(file) != EOF
    which should be
    (ch=getc(file)) != EOF
    due to operator precedence.
    See more | Go to post

    Leave a comment:


  • learner007
    started a topic temp=tmpfile() lose all its contents?
    in C

    temp=tmpfile() lose all its contents?

    Dear there,

    I wrote a simple all->unix ascii file converter on fly, see the comments below. I am using temp=tmpfile() to hold contents for later processing, but it seems lost later on.

    Code:
    /* FILE* file is assigned before calling this routing. 
    After calling this routine, 'file; is supposed to point to the temporary file stream 
    with processed content. However, I found later that file has no content
    ...
    See more | Go to post
No activity results to display
Show More
Working...