Browse Source

refactoring: description added

remotes/origin/develop
Sandro Welte 11 months ago
parent
commit
4dd0b9dc23
  1. 7
      src/convert_m_to_ft.h

7
src/convert_m_to_ft.h

@ -2,6 +2,13 @@
#ifndef THEADMIRALS_CONVERT_M_TO_FT_H #ifndef THEADMIRALS_CONVERT_M_TO_FT_H
#define THEADMIRALS_CONVERT_M_TO_FT_H #define THEADMIRALS_CONVERT_M_TO_FT_H
// Convert length from one unit to another
// Parameters:
// value: the value to be converted
// from_unit: the unit to convert from ('m' for meters, 'c' for centimeters, 'i' for inches)
// to_unit: the unit to convert to ('m' for meters, 'c' for centimeters, 'i' for inches)
// Returns:
// The converted length value
float convert_length(float value, char from_unit, char to_unit); float convert_length(float value, char from_unit, char to_unit);

Loading…
Cancel
Save