~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to src/reference/plain/memset.c

  • Committer: Michael Hope
  • Date: 2010-08-30 23:30:25 UTC
  • Revision ID: michael.hope@linaro.org-20100830233025-2f14wknqev6ryj01
Modified the imported versions to build locally.  Added the CSL routines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stddef.h>
 
2
 
 
3
void *memset(void *dst0, int c, size_t len0)
 
4
{
 
5
  char *dst = (char *) dst0;
 
6
 
 
7
  void *save = dst0;
 
8
 
 
9
  while (len0--)
 
10
    {
 
11
      *dst++ = c;
 
12
    }
 
13
 
 
14
  return save;
 
15
}