Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codr7/hacktical-c
/ hc_strcmp
Function
hc_strcmp
dsl/dsl.c:10–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
#include
"list/list.h"
9
10
enum hc_order hc_strcmp(const char *x, const char *y) {
11
const int result = strcmp(x, y);
12
if (!result) { return HC_EQ; }
13
return (result < 0) ? HC_LT : HC_GT;
14
}
15
16
char *hc_upcase(char *s) {
17
while (*s) {
Callers
1
env_cmp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected