mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
55 lines
1.0 KiB
C
55 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2014 Ho Chi Minh city University of Technology (HCMUT)
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup examples
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Definitions for some c functions.
|
|
*
|
|
* @author DangNhat Pham-Huu <51002279@hcmut.edu.vn>
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifndef C_FUNCTIONS_H
|
|
#define C_FUNCTIONS_H
|
|
|
|
/*
|
|
* all headers defining c functions must be marked as extern "C" when included
|
|
* into c++ sources
|
|
*/
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Print a hello message.
|
|
*/
|
|
int hello(void);
|
|
|
|
/**
|
|
* @brief Get day of week from given date (day, month, year >= 1/1/2000).
|
|
*
|
|
* @param[in] day
|
|
* @param[in] month
|
|
* @param[in] year
|
|
*
|
|
* @return day of week (0 means Sunday, ... 6 means Saturday)
|
|
*/
|
|
int day_of_week(int day, int month, int year);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
#endif /* C_FUNCTIONS_H */
|