User Profile

Collapse

Profile Sidebar

Collapse
kiarash
kiarash
Last Activity: Jul 9 '07, 01:54 PM
Joined: Sep 19 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kiarash
    started a topic Redifinition of fstream
    in C

    Redifinition of fstream

    Hi,

    I want to open & close multiple files in a for loop.I have two problems :

    1.How can I define an array of file names to be entered to "fstream" function?

    2.How can I avoid redefiniton error for redefining an fstream variable?

    I would be thankful if any one can help me.
    See more | Go to post

  • kiarash
    replied to How can I save & restore the program counter ?
    in C
    Thanks for your reply,

    I use IAR 4.4 for arm.
    In this program I have a timer interrupt. I have a specified routine to be done in this sub routine.But every part should be done in one time,then the program should wait until next interrupt service routine call to continue.

    I tried function pointer arrays & also switch-case routines.But these routines are not practical for me as they are very time consuming....
    See more | Go to post

    Leave a comment:


  • kiarash
    started a topic How can I save & restore the program counter ?
    in C

    How can I save & restore the program counter ?

    In a called function,I want to save the "program counter" , when program reached to a specified location ,& then return from the function .
    In the next calling of this function , I want to restore "pc+1" to continue the process.

    How can I do this?
    See more | Go to post
No activity results to display
Show More
Working...