GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
#include <string.h>
Go to the source code of this file.
Functions | |
int | datetime_error (int code, char *msg) |
record 'code' and 'msg' as error code/msg (in static variables) code==0 will clear the error (ie set msg=NULL) returns 'code' so that it can be used like: More... | |
int | datetime_error_code (void) |
returns an error code More... | |
char * | datetime_error_msg (void) |
returns an error message More... | |
void | datetime_clear_error (void) |
clears error code and message More... | |
void datetime_clear_error | ( | void | ) |
int datetime_error | ( | int | code, |
char * | msg | ||
) |
record 'code' and 'msg' as error code/msg (in static variables) code==0 will clear the error (ie set msg=NULL) returns 'code' so that it can be used like:
code | |
msg |
Definition at line 28 of file datetime/error.c.
Referenced by datetime_change_timezone(), datetime_check_increment(), datetime_check_timezone(), datetime_check_type(), datetime_days_in_month(), datetime_days_in_year(), and datetime_is_leap_year().
int datetime_error_code | ( | void | ) |
returns an error code
Definition at line 46 of file datetime/error.c.
Referenced by datetime_format(), and datetime_increment().
char* datetime_error_msg | ( | void | ) |