This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-verify-policy/common/src/verify_policy_utils.cpp

19 lines
233 B
C++
Raw Normal View History

2020-01-17 10:59:34 +08:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
char* rt_strdup(const char* s)
{
char*d=NULL;
if(s==NULL)
{
return NULL;
}
d=(char*)malloc(strlen(s)+1);
memcpy(d,s,strlen(s)+1);
return d;
}