tChange size type for strrstr - ve - a minimal text editor (work in progress)
(HTM) git clone git://src.adamsgaard.dk/ve
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 89dd277c2abb179ea7264f20ea4ac93dba134770
(DIR) parent 4247f1004df471c91886c04a985b3faba9d08501
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 7 Aug 2019 16:20:33 +0200
Change size type for strrstr
Diffstat:
M find.c | 2 +-
M find.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/find.c b/find.c
t@@ -13,7 +13,7 @@
/* reverse of strstr (3) */
char*
strrstr(char *haystack, char *needle,
- ssize_t haystack_length, ssize_t needle_length)
+ size_t haystack_length, size_t needle_length)
{
char *cp;
for (cp = haystack + haystack_length - needle_length;
(DIR) diff --git a/find.h b/find.h
t@@ -2,7 +2,7 @@
#define FIND_H_
char* strrstr(char *haystack, char *needle,
- ssize_t haystack_length, ssize_t needle_length);
+ size_t haystack_length, size_t needle_length);
void editor_find_next_occurence(int opposite_direction);
void editor_find(int direction);