XilinxProcessorIPLib/drivers/dp12txss/examples/src/com/xhdcp1x_debug.c
static void StripBuf(char** BufPtr)
{
	char* Ptr = *BufPtr;

	/* Strip off any trailing CR/LF/SPACE */
	Ptr += (strlen(Ptr) - 1);
	while ((*Ptr == 0x20) || (*Ptr == 0x0D) || (*Ptr == 0x0A)) {
		*Ptr-- = 0;
	}

	/* Strip off any leading CR/LF/SPACE */
	Ptr = *BufPtr;
	while ((*Ptr == 0x20) || (*Ptr == 0x0D) || (*Ptr == 0x0A)) {
		Ptr++;
	}

	/* Update parameter */
	*BufPtr = Ptr;

	return;
}
/*****************************************************************************/
/**
 *
 * This function strips all leading and trailing whitespace from a string
 *
 * @return
 *   void
 *
 * @note
 *   None.
 *
 *****************************************************************************/
This function strips all leading and trailing whitespace from a string
@return
void

@note
None.
This function strips all leading and trailing whitespace from a string @return void @note None .
static void StripBuf(char** BufPtr)
{
	char* Ptr = *BufPtr;
	Ptr += (strlen(Ptr) - 1);
	while ((*Ptr == 0x20) || (*Ptr == 0x0D) || (*Ptr == 0x0A)) {
		*Ptr-- = 0;
	}
	Ptr = *BufPtr;
	while ((*Ptr == 0x20) || (*Ptr == 0x0D) || (*Ptr == 0x0A)) {
		Ptr++;
	}
	*BufPtr = Ptr;
	return;
}
static void StripBuf ( char * * BufPtr ) { char * Ptr = * BufPtr ; Ptr += ( strlen ( Ptr ) - 1 ) ; while ( ( * Ptr == 0x20 ) || ( * Ptr == 0x0D ) || ( * Ptr == 0x0A ) ) { * Ptr -- = 0 ; } Ptr = * BufPtr ; while ( ( * Ptr == 0x20 ) || ( * Ptr == 0x0D ) || ( * Ptr == 0x0A ) ) { Ptr ++ ; } * BufPtr = Ptr ; return ; }
This function strips all leading and trailing whitespace from a string
 @return
   void
This function strips all leading and trailing whitespace from a string @return void
/* Strip off any trailing CR/LF/SPACE */ /* Strip off any leading CR/LF/SPACE */ /* Update parameter */