summaryrefslogtreecommitdiff
path: root/src/libstddjb/touch.c
blob: 45a8d2c671463b945fb8772fd6e7614c664c2bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/djbunix.h>

int touch (char const *file)
{
  register int fd = open_create(file) ;
  if (fd < 0) return 0 ;
  fd_close(fd) ;
  return 1 ;
}