ev3duder  0.3.0
EV3 Downloader/Uploader
mkrbf.c File Reference

call ev3 shell via rbf file More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "defs.h"
#include "error.h"
#include "funcs.h"

Go to the source code of this file.

Functions

size_t mkrbf (char **buf, const char *cmd)
 Offline functionality. Generates bytecode for executing a binary executable. More...
 

Detailed Description

call ev3 shell via rbf file

Author
Ahmad Fatoum

Definition in file mkrbf.c.

Function Documentation

size_t mkrbf ( char **  buf,
const char *  cmd 
)

Offline functionality. Generates bytecode for executing a binary executable.

fill *buf with a rbf file executing cmd

Parameters
[out]bufbuffer with the bytecode
[in]cmdthe command to be executed
Return values
bytes_writtenbuffer size
Warning
Command is passed unsanitized to root shell. Handle with care

Definition at line 29 of file mkrbf.c.