2014-06-25 03:19:39 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Ho Chi Minh city University of Technology (HCMUT)
|
|
|
|
*
|
2014-08-23 15:43:13 +02:00
|
|
|
* 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.
|
2014-06-25 03:19:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup examples
|
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2014-06-25 03:19:39 +02:00
|
|
|
* @brief Definitions for some c functions.
|
|
|
|
*
|
|
|
|
* @author DangNhat Pham-Huu <51002279@hcmut.edu.vn>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef C_FUNCTIONS_H
|
|
|
|
#define C_FUNCTIONS_H
|
2014-06-25 03:19:39 +02:00
|
|
|
|
2018-01-16 23:27:27 +01:00
|
|
|
/*
|
|
|
|
* all headers defining c functions must be marked as extern "C" when included
|
|
|
|
* into c++ sources
|
|
|
|
*/
|
2014-06-25 03:19:39 +02:00
|
|
|
#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
|
|
|
|
|
|
|
|
/** @} */
|
2017-01-18 15:07:35 +01:00
|
|
|
#endif /* C_FUNCTIONS_H */
|