/* * * Write buffer to a file * * Author: * * WORK: fernando.ruiz@ctv.es * HOME: correo@fernando-ruiz.com * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include void rtems_shell_write_file( char *name, char * content ) { FILE * fd; fd = fopen(name,"w"); if (fd) { fwrite(content,1,strlen(content),fd); fclose(fd); } }