Skip to content

Instantly share code, notes, and snippets.

@rmccullagh
Created December 11, 2015 21:55
Show Gist options
  • Select an option

  • Save rmccullagh/a35a3efbbbc584dfdf17 to your computer and use it in GitHub Desktop.

Select an option

Save rmccullagh/a35a3efbbbc584dfdf17 to your computer and use it in GitHub Desktop.
/*
* Copyright (c) 2015 Ryan McCullagh <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MY_IO_H
#define MY_IO_H
/*
* This is basically a wrapper to fwrite
*/
extern int write_bytes_to_stream(FILE* fp, const void* data, size_t size);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment