1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-09 23:50:14 +02:00
nn-usb-fpga/lua/examples/lua_calls_C5/liba.c
Carlos Camargo 7d9b7b803c Adding LUA tutorials: lua_calls_C1 - lua_calls_C5
Adding blinker demo: lua_blink_led
2010-09-06 20:24:53 -05:00

41 lines
524 B
C

#include <stdio.h>
#include <string.h>
#include "liba.h"
#define ENTER do{printf("in %s \n" ,__FUNCTION__);}while(0);
void lib_a_f_1()
{
ENTER
}
int lib_a_f_2(int a , int b)
{
ENTER
return a * b ;
}
int lib_a_f_3(const char *s)
{
ENTER
return strlen(s);
}
int lib_a_f_4(Point *in_t)
{
ENTER
return in_t->a * in_t->b ;
}
int lib_a_f_5(Point *out_t)
{
ENTER
out_t->a = 20;
out_t->b = 30;
return 0;
}