From d4ed2ed7fa36a2637f6f3b352ee2875abaf27092 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Mon, 6 Jan 2025 14:46:49 +0100 Subject: header: add definitions for RPC presence and IDs This allows to check at compilation time for some rpc (as done for example in glibc for thread_set/get_name() and host_page_size()). Also the IDs can be useful for testing purposes, or when assembling messages manually. Message-ID: <20250106134649.391487-1-luca@orpolo.org> --- string.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'string.c') diff --git a/string.c b/string.c index e182948..eeaaba2 100644 --- a/string.c +++ b/string.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "error.h" #include "mig_string.h" @@ -77,3 +78,13 @@ strstring(const_string_t string) else return string; } + +char * +strupper(const_string_t string) +{ + string_t upper = strmake(string); + + for (int i=0; i