dir.c
/* convert A0 padded petscii name to ascii */
convert A0 padded petscii name to ascii
convert A0 padded petscii name to ascii
char *make_name(unsigned char *rawname) {
  int l;
  char *name;
  for (l = 0; rawname[l] != 0xa0 && l < 16; ++l);
  if ((name = malloc(l+1)) == NULL) {
    return(NULL);
  }
  memcpy(name, rawname, l);
  name[l] = 0;
  for (l = 0; rawname[l]; ++l) {
  }
  return(name);
}
char * make_name ( unsigned char * rawname ) { int l ; char * name ; for ( l = 0 ; rawname [ l ] != 0xa0 && l < 16 ; ++ l ) ; if ( ( name = malloc ( l + 1 ) ) == NULL ) { return ( NULL ) ; } memcpy ( name , rawname , l ) ; name [ l ] = 0 ; for ( l = 0 ; rawname [ l ] ; ++ l ) { } return ( name ) ; }
convert A0 padded petscii name to ascii
convert A0 padded petscii name to ascii