APM:Libraries
Functions | Variables
stdio.h File Reference
#include "posix.h"
#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Include dependency graph for stdio.h:

Go to the source code of this file.

Functions

int vsnprintf (char *str, size_t size, const char *fmt, va_list ap)
 
int snprintf (char *str, size_t size, const char *fmt,...)
 
int vasprintf (char **strp, const char *fmt, va_list ap)
 
int asprintf (char **strp, const char *fmt,...)
 
int vprintf (const char *fmt, va_list arg)
 
int printf (const char *fmt,...)
 
int scanf (const char *fmt,...)
 
int sscanf (const char *buf, const char *fmt,...)
 
int vsscanf (const char *buf, const char *s, va_list ap)
 
void * malloc (size_t size)
 
void * calloc (size_t nmemb, size_t size)
 
void free (void *ptr)
 

Variables

int(* vprintf_console_hook )(const char *fmt, va_list arg)
 

Function Documentation

◆ asprintf()

int asprintf ( char **  strp,
const char *  fmt,
  ... 
)

◆ calloc()

void* calloc ( size_t  nmemb,
size_t  size 
)

◆ free()

void free ( void *  ptr)

Definition at line 81 of file malloc.c.

Referenced by HALSITL::SITL_State::_gps_nmea_printf(), Linux::UARTDriver::_parseDevicePath(), Linux::OpticalFlow_Onboard::_run_optflow(), HALSITL::SITL_State::_set_param_default(), BM_Crop8bpp(), BM_YuyvToGrey(), SITL::FlightAxis::exchange_data(), free_file_descriptor(), VRBRAIN::VRBRAINUtil::free_type(), PX4::PX4Util::free_type(), F4Light::Util::free_type(), AP_HAL::Util::free_type(), Linux::I2CDeviceManager::get_device(), Linux::PWM_Sysfs_Base::init(), Linux::Led_Sysfs::init(), AP_SmartRTL::init(), AP_InertialSensor::BatchSampler::init(), AP_Param::load_embedded_param_defaults(), DataFlash_Class::msg_fmt_for_name(), new_file_descriptor(), Linux::RCInput_Navio2::open_channel(), operator delete(), operator delete[](), SITL::Aircraft::parse_home(), AP_Param::parse_param_line(), AP_BoardConfig::px4_start_driver(), SITL::JSBSim::send_servos(), AnalogSource_Navio2::set_channel(), ByteBuffer::set_size(), CompassCalibrator::set_status(), AccelCalibrator::set_status(), SITL::FlightAxis::soap_request(), AuxiliaryBus::~AuxiliaryBus(), ByteBuffer::~ByteBuffer(), PX4::I2CDevice::~I2CDevice(), VRBRAIN::I2CDevice::~I2CDevice(), ChibiOS::I2CDevice::~I2CDevice(), Linux::Memory_table::~Memory_table(), Linux::PWM_Sysfs_Base::~PWM_Sysfs_Base(), VRBRAIN::SPIDevice::~SPIDevice(), PX4::SPIDevice::~SPIDevice(), and ChibiOS::SPIDevice::~SPIDevice().

Here is the caller graph for this function:

◆ malloc()

void* malloc ( size_t  size)

Definition at line 61 of file malloc.c.

Referenced by BM_Crop8bpp(), BM_YuyvToGrey(), calloc(), F4Light::Util::malloc_type(), ChibiOS::DeviceBus::register_periodic_callback(), and F4Light::SPIDevice::transfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printf()

int printf ( const char *  fmt,
  ... 
)

Definition at line 113 of file stdio.c.

◆ scanf()

int scanf ( const char *  fmt,
  ... 
)

Definition at line 127 of file stdio.c.

◆ snprintf()

int snprintf ( char *  str,
size_t  size,
const char *  fmt,
  ... 
)

◆ sscanf()

int sscanf ( const char *  buf,
const char *  fmt,
  ... 
)

Definition at line 136 of file stdio.c.

Referenced by Linux::UtilRPI::_check_rpi_version(), dsm_decode(), Linux::I2CDeviceManager::get_device(), main(), and AP_Proximity_LightWareSF40C::process_reply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vasprintf()

int vasprintf ( char **  strp,
const char *  fmt,
va_list  ap 
)

Definition at line 76 of file stdio.c.

Referenced by HALSITL::SITL_State::_gps_nmea_printf(), asprintf(), fprintf(), and SITL::FlightAxis::soap_request().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vprintf()

int vprintf ( const char *  fmt,
va_list  arg 
)

Definition at line 100 of file stdio.c.

Referenced by AP_HAL::panic().

Here is the caller graph for this function:

◆ vsnprintf()

int vsnprintf ( char *  str,
size_t  size,
const char *  fmt,
va_list  ap 
)

Definition at line 34 of file stdio.c.

Referenced by AP_HAL::Util::snprintf(), snprintf(), and vasprintf().

Here is the caller graph for this function:

◆ vsscanf()

int vsscanf ( const char *  buf,
const char *  s,
va_list  ap 
)

Referenced by atob(), and sscanf().

Here is the caller graph for this function:

Variable Documentation

◆ vprintf_console_hook

int(* vprintf_console_hook) (const char *fmt, va_list arg)

Definition at line 111 of file stdio.c.

Referenced by ChibiOS::UARTDriver::begin(), and printf().