DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦cca78dedf⟧ TextFile

    Length: 341 (0x155)
    Types: TextFile
    Names: »itoa.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/X/Xtrek/itoa.c« 

TextFile

static char sccsid[] = "@(#)itoa.c	1.1";
itoa(n, len, buf)
int n, len;
char *buf;
{
  int i;
  char sign = ' ';

  if (0 > n) {
    n = -n;
    sign = '-';
  }
  for (i = len; i > 0; i--) {
    if (n > 0 || len == i) {
      buf[i-1] = '0' + (n % 10);
      n = n / 10;
    } else {
      buf[i-1] = sign;
      sign = ' ';
    }
  }
}