ftp.nice.ch/Attic/openStep/games/SokoSave.1.1.mw.s.tgz#/SokoSave/SokoEncode.h

This is SokoEncode.h in view mode; [Download] [Up]

#ifndef __SokoSave_SokoEncode_h
#define __SokoSave_SokoEncode_h
//-----------------------------------------------------------------------------
// SokoEncode.h
//
//	Routines for using run length encoding for SokoSave.
//
// Copyright (c), 1997, Paul McCarthy.  All rights reserved.
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// $Id: SokoEncode.h,v 1.1 97/11/13 02:56:06 zarnuk Exp $
// $Log:	SokoEncode.h,v $
//  Revision 1.1  97/11/13  02:56:06  zarnuk
//  v9
//  
//-----------------------------------------------------------------------------
extern "C" {
#include <stdio.h>		// For FILE*
}

void runLengthEncodeString( FILE *fp, char const *str, int str_length );
void runLengthEncodeChar( FILE *fp, char ch, int run_length );

// 1=success, 0=failure.
int runLengthDecodeString( FILE *fp, char *buff, int buff_len );
int runLengthDecodeChar( FILE *fp, char *ch, int *run_length );

#endif // __SokoSave_SokoEncode_h

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.