#ifndef SC_ADB_PARSER_H
#define SC_ADB_PARSER_H

#include "common.h"

#include "stddef.h"

/**
 * Parse the ip from the output of `adb shell ip route`
 */
char *
sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len);

#endif

#ifndef SC_ADB_PARSER_H
#define SC_ADB_PARSER_H

#include "common.h"

#include "stddef.h"

/**
 * Parse the ip from the output of `adb shell ip route`
 *
 * Warning: this function modifies the buffer for optimization purposes.
 */
char *
sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len);

#endif

Add warning in function documentation
Add warning in function documentation

The function parsing "ip route" output modifies the input buffer to
tokenize in place. This must be mentioned in the function documentation.
