X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=string-extras.h;h=9990afea76dd3648de9adbb74686c6acf190a8b6;hp=bf2cbf7fe0019e00d1484181a652381d4f320b49;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=2dc047a070be7f0d64f4d4e7f4296a9650af07dc diff --git a/string-extras.h b/string-extras.h index bf2cbf7..9990afe 100644 --- a/string-extras.h +++ b/string-extras.h @@ -1,7 +1,7 @@ /* string-extras.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ * */ -/** \fn stridentcnt_P(char* a, PGM_P b) +/** \fn stridentcnt_P(char *a, PGM_P b) * \brief counts the number of identic chars * * This function compares the supplyed strings and returns the index of the @@ -33,9 +33,9 @@ * \param b pointer to string in Flash * \return index of the first char where \c a and \c b differ */ -uint16_t stridentcnt_P(char* a, PGM_P b); +uint16_t stridentcnt_P(char *a, PGM_P b); -/** \fn firstword_length(char* s) +/** \fn firstword_length(char *s) * \brief compute the length of the first word in supllyed string * * This function searches for the first whitespace in the string and returns the @@ -43,13 +43,13 @@ uint16_t stridentcnt_P(char* a, PGM_P b); * \param s string * \return number of chars in first word */ -uint16_t firstword_length(char* s); +uint16_t firstword_length(char *s); -/** \fn strstrip(char* str) +/** \fn strstrip(char *str) * \brief removes whitespace at the beginning and the end of a string * * This function removes whitespaces at the end of a string. * \param str sting * \return pointer to the first non-whitespace char in string */ -char* strstrip(char* str); +char *strstrip(char *str);