Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: util.h
- Revision:
- 0:b3a2e39a13ad
- Child:
- 1:a4c87bc5b008
diff -r 000000000000 -r b3a2e39a13ad util.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util.h Wed Nov 28 18:52:43 2012 +0000 @@ -0,0 +1,31 @@ +/* anciennement sys.h */ + +// typedef void procedure; +// typedef unsigned char booleen; +typedef void *pointeur; + +#ifndef FALSE +# define FALSE 0 +#endif +#ifndef TRUE +# define TRUE 1 +#endif + +#define ALLOUE( nb,type ) (type *) calloc( nb,sizeof( type ) ) +#define LIBERE( var ) if( var ) free( (void *) var ) + +#define FARALLOUE( nb,type ) (type *) calloc( nb, sizeof( type ) ) +#define FARLIBERE( var ) if( var ) free( (void *) var ) + +/* util.h */ + +typedef char STRING[ 41 ]; +#define MAX_CHAR_POOL 4096 /* 4Ko de chaines */ + + +double convert_position( double data ); +double temps( unsigned jour_julien, double heure ); + + +STRING *gen_str( unsigned taille /*= 80*/ ); +