Code cleanup
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1058 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0910f0dd75
commit
19e6cde283
7 changed files with 49 additions and 95 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2002 Robert Rainwater
|
||||
Portions Copyright (c) 2002 Justin Frankel and Fritz Elfert
|
||||
Contributors: Justin Frankel, Fritz Elfert, and Amir Szekely
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
|
@ -18,21 +18,18 @@
|
|||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
*/
|
||||
/*
|
||||
Contribution by kickik
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include "noclib.h"
|
||||
|
||||
// kickik's clib methods
|
||||
char *my_strrchr(const char *string, int c) {
|
||||
for (int i = lstrlen(string); i >= 0; i--)
|
||||
if (string[i] == c)
|
||||
return (char*)&string[i];
|
||||
for (int i=lstrlen(string); i>=0; i--)
|
||||
if (string[i]==c) return (char*)&string[i];
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *my_memset(void *dest, int c, size_t count) {
|
||||
for (size_t i = 0; i < count; i++) ((char*)dest)[i]=c;
|
||||
for (size_t i=0; i<count;i++) ((char*)dest)[i]=c;
|
||||
return dest;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue