shithub: femtolisp

Download patch

ref: fafab820d599c6a6f81bfc7c7930af3f14c28c6e
parent: db710d46c1f43cf7e23ea8ed278454b772a2cea3
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Mar 21 19:17:07 EDT 2023

remove mentions of memrchr

--- a/print.c
+++ b/print.c
@@ -1,7 +1,5 @@
 #include "ieee754.h"
 
-extern void *memrchr(const void *s, int c, size_t n);
-
 static htable_t printconses;
 static uint32_t printlabel;
 static int print_pretty;
@@ -735,7 +733,7 @@
                 if (print_princ) {
                     ios_write(f, data, len);
                     /*
-                    char *nl = memrchr(data, '\n', len);
+                    char *nl = llt_memrchr(data, '\n', len);
                     if (nl)
                         HPOS = u8_strwidth(nl+1);
                     else