Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

petscii.c File Reference

Shared library / DLL for accessing the driver. More...

#include "debug.h"
#include <ctype.h>
#include <stdlib.h>
#include "opencbm.h"

Go to the source code of this file.

Defines

#define DBG_USERMODE
#define DBG_PROGNAME   "OPENCBM.DLL"
#define DLL
 mark: We are building the DLL */

Functions

char CBMAPIDECL cbm_petscii2ascii_c (char Character)
 Convert a PETSCII character to ASCII.
char CBMAPIDECL cbm_ascii2petscii_c (char Character)
 Convert an ASCII character to PETSCII.
char *CBMAPIDECL cbm_petscii2ascii (char *Str)
 Convert an null-termined PETSCII string to ASCII.
char *CBMAPIDECL cbm_ascii2petscii (char *Str)
 Convert an null-termined ASCII string to PETSCII.


Detailed Description

Shared library / DLL for accessing the driver.

**************************************************************

Author:
Michael Klein, Spiro Trikaliotis
Version:
Id
petscii.c,v 1.4 2006/03/10 13:52:04 trikalio Exp


Definition in file petscii.c.


Define Documentation

#define DBG_PROGNAME   "OPENCBM.DLL"
 

The name of the executable

Definition at line 28 of file petscii.c.

#define DBG_USERMODE
 

Mark: We are in user-space (for debug.h)

Definition at line 25 of file petscii.c.


Function Documentation

char* CBMAPIDECL cbm_ascii2petscii char *  Str  ) 
 

Convert an null-termined ASCII string to PETSCII.

This function converts a string in ASCII to PETSCII.

Parameters:
Str Pointer to a buffer which holds a null-termined string in ASCII.
Returns:
Returns a pointer to the Str itself, converted to PETSCII.

Definition at line 161 of file petscii.c.

References cbm_ascii2petscii_c().

char CBMAPIDECL cbm_ascii2petscii_c char  Character  ) 
 

Convert an ASCII character to PETSCII.

This function converts a character in ASCII to PETSCII.

Parameters:
Character The character value to be converted in ASCII
Returns:
Returns the value of character in PETSCII.

Definition at line 106 of file petscii.c.

Referenced by cbm_ascii2petscii().

char* CBMAPIDECL cbm_petscii2ascii char *  Str  ) 
 

Convert an null-termined PETSCII string to ASCII.

This function converts a string in PETSCII to ASCII.

Parameters:
Str Pointer to a buffer which holds a null-termined string in PETCII.
Returns:
Returns a pointer to the Str itself, converted to ASCII.
If some character cannot be printer on the PC, they are replaced with a dot (".").

Definition at line 137 of file petscii.c.

References cbm_petscii2ascii_c().

char CBMAPIDECL cbm_petscii2ascii_c char  Character  ) 
 

Convert a PETSCII character to ASCII.

This function converts a character in PETSCII to ASCII.

Parameters:
Character The character value to be converted in PETSCII
Returns:
Returns the value of character in ASCII if it can be displayed, a dot (".") otherwise.

Definition at line 65 of file petscii.c.

Referenced by cbm_petscii2ascii().


Generated on Sun Apr 30 18:46:13 2006 for opencbm by  doxygen 1.4.2