how to exit a function?

  • Thread starter Thread starter Jeroen CEuppens
  • Start date Start date
If I want to exit the function where i'm in, could i use exit()?

just use:
return;

(and if it is a function with result you should use a proper return value
so that the calling function can recognize it... if you need this)

Boris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top