MCPcopy Create free account
hub / github.com/coreutils/coreutils / dot_or_dotdot

Function dot_or_dotdot

src/system.h:285–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283#include "openat.h"
284
285static inline bool
286dot_or_dotdot (char const *file_name)
287{
288 if (file_name[0] == '.')
289 {
290 char sep = file_name[(file_name[1] == '.') + 1];
291 return (! sep || ISSLASH (sep));
292 }
293 else
294 return false;
295}
296
297/* A wrapper for readdir so that callers don't see entries for '.' or '..'. */
298static inline struct dirent const *

Callers 4

rm_ftsFunction · 0.85
copy_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected