include/generic/string.h File Reference

Generic, non-optimized string operations. More...

#include <types.h>
#include <compiler.h>

Go to the source code of this file.

Functions

Generic String Implementation

For testing purposes, and for architectures which don't have or need optimized implementations of the standard string operations, a generic, non-optimized implementation is available for the all string operations. If you need access to these generic string operations, you need to set CONFIG_GENERIC_STRING_IMPL to 'y'. Some architectures do this unconditionally, but it is not safe to rely on this.

void * generic_memcpy (void *dest, const void *src, size_t n)
void * generic_memset (void *s, int c, size_t n)
size_t generic_strlen (const char *str)
int generic_strcmp (const char *str1, const char *str2) __nonnull(1
int int generic_strncmp (const char *str1, const char *str2, size_t n) __nonnull(1

Detailed Description

Generic, non-optimized string operations.

These functions may be used by all architectures which don't have their own hand-optimized implementations of one or more string operations. They can also be useful when testing the optimized string operations.

Copyright (C) 2009 - 2010 Atmel Corporation. All rights reserved.

Definition in file string.h.

Generated on Thu Apr 29 14:10:34 2010 for xplain-bc by  doxygen 1.6.3