Advertisement
rotrevrep

freopen wrapper for Vala

May 12th, 2015
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <stdint.h>
  4. #include <stdio.h>
  5.  
  6. void redirect_stream (char* filename, char* mode, FILE* stream);
  7.  
  8. void redirect_stream (char* filename, char* mode, FILE* stream) {
  9.     freopen (filename, mode, stream);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement