ucodes.cpp 176 Bytes
Newer Older
Vladislav Perepelkin's avatar
Vladislav Perepelkin committed
1
2
3
#include <cstdio>
#include <cstring>

Kostya's avatar
fix    
Kostya committed
4
5
6
7
8
9
10
11
12
13
14
extern "C" 
{
	void c_hello(const char *x) 
	{
		if(strlen(x)>0){
			printf("Hello, %s!\n", x);
		} else {
			printf("Hello!\n");
		}
	}
}