1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/test_getpid/main.c

9 lines
120 B
C

#include <stdio.h>
#include <thread.h>
int main(void)
{
int pid = thread_getpid();
printf("PID: %i\n", pid);
}