在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rodionovd/rd_route开源软件地址(OpenSource Url):https://github.com/rodionovd/rd_route开源编程语言(OpenSource Language):C 93.6%开源软件介绍(OpenSource Introduction):rd_route
NOTE: Usage#include <assert.h>
#include "rd_route.h"
static char* my_strerror(int err)
{
return "It's OK";
}
int main (void)
{
void *(*original)(int) = NULL;
int err = 2;
printf("Error(%d): %s", err, strerror(err));
// >> No such file or directory
rd_route(strerror, my_strerror, (void **)&original);
// See if the patch works
assert(0 == strcmp("It's OK", strerror(err)));
// See if an original implementation is still available
assert(0 == strcmp("No such file or directory", original(err)));
return 0;
} IntegrationUsing git submodules$ cd /your/project/path
$ git submodule add https://github.com/rodionovd/rd_route Not using git submodulesJust copy
But wait, we already have |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论