MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / td_getcwd

Function td_getcwd

src/askloc.c:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64#include "log.h"
65
66char *td_getcwd(char *buf, unsigned long size)
67{
68 /* buf must non-NULL*/
69#ifdef HAVE_GETCWD
70 if(getcwd(buf, size)!=NULL)
71 {
72 /*@ assert valid_string(buf); */
73 return buf;
74 }
75 buf[0]='/';
76 buf[1]='\0';
77#else
78 buf[0]='.';
79 buf[1]='\0';
80#endif
81 /*@ assert valid_string(buf); */
82 return buf;
83}
84
85char *get_default_location(void)
86{

Callers 4

get_default_locationFunction · 0.85
askloc.cFile · 0.85
menu_photorecFunction · 0.85
adv_menu_image_selectedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected