c program using empty main function?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

c program using empty main function?

1,702 Views
georgemathew
Contributor II

is it possible to write c program using empty main function?

void main()
{
}
Labels (1)
0 Kudos
Reply
8 Replies

1,014 Views
georgemathew
Contributor II

is only main.c added in code warrior?

0 Kudos
Reply

1,014 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

You can add code refer to your requirement .

I recommend you find one demo project to refer to .

If you can not find ,you can tell me the chip part number , the version of CW.

BR

Alice

0 Kudos
Reply

1,014 Views
georgemathew
Contributor II

code warrior 5.1, controller MC9S12A128

0 Kudos
Reply

1,014 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello george,

Under the installation directory of CWv5.1, there is C demo code for this chip :

pastedImage_1.png

Hope it helps

Alice

0 Kudos
Reply

1,014 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello george,

Just through your these words, the answer is yes ,you can write c program into this main function.

What do you want to do ? Could  you please introduce your requirements clearly ?

BR

Alice

0 Kudos
Reply

1,014 Views
georgemathew
Contributor II

please explain methods?

0 Kudos
Reply

1,014 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Dear george,

What methods ? I don't know what do you want to do .

please introduce your requirements clearly .

BR

Alice

0 Kudos
Reply

1,014 Views
georgemathew
Contributor II

I found a a program in which main function is empty

0 Kudos
Reply