I've formed two void functions and I want to combine the two void function together in a void main function. However, the system shows that I can't combine two void functions. How do I combine the two void function together so I can play both function at the same time?
Hi 7ea8ea
This forum is for questions about using the community. Please take a look at https://community.arm.com/developer/f, and let me know which forum I can move this question to.
Thanks!
Oli from the Community team
Hi,
Oliver, this question is movable in : Arm Development Platforms forum
Also i know this is simply C programming question...
The good answer simply is a "fork" function
For exemple :https://www.geeksforgeeks.org/fork-system-call/Regards
8051 MikroC PRO is not an ARM (or Keil) product - so why are you posting here at all?
7ea8ea said:the system shows that I can't combine two void functions
What "system"? and how does it show that?
Of course you can combine two functions:
void function_1( void ) { // do function_1 stuff }
void function_2( void ) { // do function_2 stuff }
simply becomes
void combined_function( void ) { // do function_1 stuff // do function_2 stuff }
Jerome Decamps - 杜尚杰 said:this is simply C programming question
Indeed, but
Jerome Decamps - 杜尚杰 said:a "fork" function
err ... not on an 8051 !