1
0

utime_time32.c 308 B

1234567891011121314
  1. #include "time32.h"
  2. #include <time.h>
  3. #include <utime.h>
  4. struct utimbuf32 {
  5. time32_t actime;
  6. time32_t modtime;
  7. };
  8. int __utime_time32(const char *path, const struct utimbuf32 *times32)
  9. {
  10. return utime(path, !times32 ? 0 : (&(struct utimbuf){
  11. .actime = times32->actime, .modtime = times32->modtime}));
  12. }