Path: blob/master/waterbox/libc/functions/stdio/funlockfile.c
2 views
/* funlockfile( FILE * )12This file is part of the Public Domain C Library (PDCLib).3Permission is granted to use, modify, and / or redistribute at will.4*/56#include <stdio.h>7#include <stdarg.h>89#ifndef REGTEST10#include "_PDCLIB_io.h"11#include <threads.h>12#include <stdlib.h>1314void _PDCLIB_funlockfile( FILE * file )15{16int res = mtx_unlock( &file->lock );17switch(res) {18case thrd_success:19return;2021default:22abort();23}24}2526#endif2728#ifdef TEST29#include "_PDCLIB_test.h"3031int main( void )32{33// Not tested here - tested by other stdio test drivers34return TEST_RESULTS;35}3637#endif383940