#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "a2simpleio.h"

//This function converts a path in s to one readable by
//ProDOS and stores it in pdpath.  Pdpath is assumed to
//be 66 bytes long, begin with a byte-length and have
//no string terminator.
void __fastcall__ readpath (char* pdpath, const char* s)
{
	unsigned char i;
// prints (">>>"); prints (s); printcr();
	strcpy (&pdpath[1], s);
	pdpath[0]=strlen(&pdpath[1])-1;
	for (i=1; i<pdpath[0]+1; ++i) pdpath[i]|=0x80;
	//return pdpath;
}
