Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1173 → Rev 1172

/uspace/trunk/libc/generic/string.c
26,6 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#include <types.h>
#include <string.h>
 
/* Dummy implementation of mem/ functions */
46,14 → 47,3
*(odst++) = *(os++);
return dest;
}
 
size_t strlen(const char *str)
{
int counter = 0;
 
while (str[counter] != 0) {
counter++;
}
 
return counter;
}