Просмотр исходного кода

memscan does not alter the mem pointer - make it const

tags/v0.9.3
Holger Lubitz 18 лет назад
Родитель
Сommit
d0d044443d
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      src/core/stringextra.c

+ 1
- 1
src/core/stringextra.c Просмотреть файл

258
  * returns the address of the first occurrence of @c, or 1 byte past
258
  * returns the address of the first occurrence of @c, or 1 byte past
259
  * the area if @c is not found
259
  * the area if @c is not found
260
  */
260
  */
261
-void * memscan(void * addr, int c, size_t size)
261
+void * memscan(const void * addr, int c, size_t size)
262
 {
262
 {
263
 	unsigned char * p = (unsigned char *) addr;
263
 	unsigned char * p = (unsigned char *) addr;
264
 
264
 

Загрузка…
Отмена
Сохранить