/*************************************************************************************************/ /*! * \file wstr.c * * \brief String manipulation functions. * * $Date: 2017-02-14 15:31:43 -0600 (Tue, 14 Feb 2017) $ * $Revision: 11184 $ * * Copyright (c) 2014-2017 ARM Ltd., all rights reserved. * ARM Ltd. confidential and proprietary. * * IMPORTANT. Your use of this file is governed by a Software License Agreement * ("Agreement") that must be accepted in order to download or otherwise receive a * copy of this file. You may not use or copy this file for any purpose other than * as described in the Agreement. If you do not agree to all of the terms of the * Agreement do not use this file and delete all copies in your possession or control; * if you do not have a copy of the Agreement, you must contact ARM Ltd. prior * to any use, copying or further distribution of this software. */ /*************************************************************************************************/ #include #include "wsf_types.h" #include "wstr.h" /*************************************************************************************************/ /*! * \fn WstrnCpy * * \brief Copy a string and zero out space after the string length. * * \return none. */ /*************************************************************************************************/ void WstrnCpy(char *pBuf, const char *pData, uint8_t n) { uint8_t i; uint8_t zeroing = FALSE; for (i=0; i