Added the write routine.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5584 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-09 11:46:16 +00:00
parent b6329757d7
commit 4e7488d9b9
4 changed files with 68 additions and 17 deletions

View File

@@ -80,14 +80,6 @@ static const FileId FormatTable[] = {
static int Compare (const void* Key, const void* Id)
/* Compare function for bsearch */
{
return strcmp (Key, ((const FileId*) Id)->Ext);
}
int FindInputFormat (const char* Name)
/* Find an input format by name. The function returns a value less than zero
* if Name is not a known input format.
@@ -98,7 +90,7 @@ int FindInputFormat (const char* Name)
FormatTable,
sizeof (FormatTable) / sizeof (FormatTable[0]),
sizeof (FormatTable[0]),
Compare);
CompareFileId);
/* Return the id or an error code */
return (F == 0)? -1 : F->Id;