view hello.cbc @ 3:ff247dc87f35

add start.cbc
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Fri, 27 Jul 2012 21:08:06 +0900
parents c4f71c17c966
children
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>

void loop0(int count);

__code loop_print(int count)
{
    printf("loop_print\nhelloWorld\n");
    loop0(count);
}

void loop0(int count)
{
    printf("loop0\ncount :%d\n", count);
    if(count>100) {
        return;
    }
    goto loop_print(count+1);
    return;
}

int main(void)
{
    int count = 0;
    loop0(count);
    return 0;
}