#ifndef H_ED_ITOA_20030912104438
#define H_ED_ITOA_20030912104438

#ifdef __cplusplus
extern "C"
{
#endif

/* ---------------------------------------------------------------------
   (c) ED 1997-2003
   Project      : CLIB
   Function     : Fonctions de conversion int -> asciiz
   Module       : ITOA
   File         : ITOA.C
   Created      : 03-06-97
   Modified     : 12-11-03
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   Log

   1.0 : 03-06-97 : Creation (recuperation ETCD-2G/P4.1)
   1.1 : 04-06-97 : itoa16 -> ctoa16 (uchar)
   .                creation de wtoa16 (ushort)
   .                itoa10 -> wtoa10 (ushort)
   1.2 : 12-04-00 : creation de ultoa16 (ulong)
   1.3 : 13-04-00 : creation de ultoa10 (ulong)
   1.4 : 09-03-02 : optimisation wtoa10()
   1.5 : 12-09-03 : ajoute ultoa2
   1.6 : 12-11-03 : ajout de itoa_sid() et itoa_sver()

   --------------------------------------------------------------------- */
#include "ed/inc/types.h"

/* macros ============================================================== */

#define ITOA_MAX 33

/* constants =========================================================== */
/* types =============================================================== */
/* structures ========================================================== */
/* internal public data ================================================ */
/* internal public functions =========================================== */
/* entry points ======================================================== */

   char const *itoa_sver (void);
   char const *itoa_sid (void);

/* ------------------------------------------------------------------------
   Fonction wtoa10(n,s)
   ------------------------------------------------------------------------
   E : entier
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un entier en une chaine ascii DECIMALE sur 1 a 5 digits
   "xxxxx"  (0-65635)
   ------------------------------------------------------------------------ */
   void wtoa10 (uint const n, char *s);

/* ------------------------------------------------------------------------
   Fonction ultoa10(n,s)
   ------------------------------------------------------------------------
   E : entier long
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un entier en une chaine ascii DECIMALE sur 1 a 10 digits
   "xxxxx"  (0-4294967295)
   ------------------------------------------------------------------------ */
   void ultoa10 (ulong const n, char *s);

/* ------------------------------------------------------------------------
   Fonction uctoa16(n,s)
   ------------------------------------------------------------------------
   E : char non signe
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un char en une chaine ascii HEXA sur 2 digits "xx"
   (00-FF)
   ------------------------------------------------------------------------ */
   void uctoa16 (uchar const n, char *const s);

/* ------------------------------------------------------------------------
   Fonction wtoa16(n,s)
   ------------------------------------------------------------------------
   E : entier court
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un entier en une chaine ascii HEXA sur 4 digits "xxxx"
   (0000-FFFF)
   ------------------------------------------------------------------------ */
   void wtoa16 (uint const n, char *s);

/* ------------------------------------------------------------------------
   Fonction ultoa16(n,s)
   ------------------------------------------------------------------------
   E : entier long
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un entier en une chaine ascii HEXA sur 8 digits
   "xxxxxxxx" (00000000-FFFFFFFF)
   ------------------------------------------------------------------------ */
   void ultoa16 (ulong const n, char *s);

/* ------------------------------------------------------------------------
   Fonction ultoa2(n,s)
   ------------------------------------------------------------------------
   E : entier long
   E : largeur
   E : pointeur de chaine
   S : -
   ------------------------------------------------------------------------
   role : convertit un entier en une chaine ascii BINAIRE
   ------------------------------------------------------------------------ */
   void ultoa2 (ulong const n, uint const larg, char *const s);

/* public data ========================================================= */

#ifdef __cplusplus
}
#endif

#endif                          /* H_ED_ITOA_20030912104438 */

/* Guards added by GUARD (c) ED 2000-2003 Feb 14 2003 Ver. 1.5 */
