	*««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««*
	*
	*   Example name
	*	DFReverseBuffer.s -- 1.0
	*
	*   Function
	*	This example prints out a string, then uses the
	*	DFReverseBuffer() function and prints out the reversed text.
	*
	*   Inputs
	*	buffer - pointer to any buffer (byte aligned)
	*	size - size of that buffer in bytes (min.=1)
	*
	*   Outputs
	*	Reversed buffer
	*
	*   Notes
	*	You may need to modify some of the include paths.
	*	You will of course also need the dfunc package which should
	*	contain includes and macros for the dfunc.library.
	*
	*	Also set UCASE = LCASE for my sources.
	*
	*   Bugs
	*	
	*   Created	: 24.2.96
	*   Last change	: 24.2.96
	*»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»*

*## For the Startup.asm:

StartSkip	=	0		;0=WB/CLI, 1=CLI only  (AsmOne)
Processor	=	0		;0/680x0/0x0
MathProc	=	0		;0/68881/68882/68040/68060

*## Default includes:

		Incdir	""

** includes from our DFuncXXXX.lha archive:

		Include	lvo:dfunc.lvo

		Incdir	inc:

		Include	digital.macs
		Include	digital.i
		Include	dfunc/dfunc.i

		Include	startup.asm

		Incdir	""

	dc.b	"$VER: DFReverseBuffer 1.0 (24.2.96)",0
	even
*»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»*
Init	DefLib	dfunc,38		;open our library (newstartup macro)
	DefEnd

Start	LibBase	dfunc

	lea	Buffer(pc),a0
	lea	1(a0),a0		;skip the first 0 byte (=end)
	DCall	WriteStd		;print buffer to standard I/O

*** This is the dfunc.library function we demostrate:

	lea	Buffer(pc),a0		;pointer to buffer
	move.l	#BufferSize,d0		;length of buffer
	DCall	ReverseBuffer		;call function

***
*	You need a pointer to a buffer
*	You need the length of the buffer
***

	lea	Buffer(pc),a0
	lea	1(a0),a0
	DCall	WriteStd		;print buffer to standard I/O

*·············································································*
Close	Return	0			;Exit
*»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»*
Buffer	dc.b	0,10,"Hi! This buffer is about to get reversed by the "
	dc.b	"dfunc.library!",10
	dc.b	"Get ready...",10,0

BufferSize	= *-Buffer 	;* means 'from here'. -1 we don't want 0 end
*·············································································*
*»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»*
