4.115
Last change
on this file since ae55da72 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
404 bytes
|
Line | |
---|
1 | /* |
---|
2 | * C library memcpy routine |
---|
3 | * |
---|
4 | * This routine shall get code to optimize performance on NIOS II |
---|
5 | * |
---|
6 | * The routine is placed in this source directory to ensure that it |
---|
7 | * is picked up by all applications. |
---|
8 | */ |
---|
9 | |
---|
10 | #include <string.h> |
---|
11 | |
---|
12 | void * |
---|
13 | memcpy(void *s1, const void *s2, size_t n) |
---|
14 | { |
---|
15 | char *p1 = s1; |
---|
16 | const char *p2 = s2; |
---|
17 | size_t left = n; |
---|
18 | |
---|
19 | while(left > 0) *(p1++) = *(p2++); |
---|
20 | return s1; |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.