On 19.02.2018 18:17, Collin L. Walling wrote:
> On 02/19/2018 11:19 AM, Collin L. Walling wrote:
>> On 02/19/2018 11:00 AM, Thomas Huth wrote:
>>> On 19.02.2018 16:40, Collin L. Walling wrote:
On 02/17/2018 02:48 AM, Thomas Huth wrote:
> On 16.02.2018 23:07, Collin L. Walling wrote:
>
On 02/19/2018 11:17 AM, Collin L. Walling wrote:
How is this for a compromise?
- start num_idx at 1, provide comment as for why
- change while loop comment to explain we are "counting the
_indices_ _of_ _num_"
- str[num_idx] is assigned \0, and we also decrement num_idx in one
On 02/19/2018 11:19 AM, Collin L. Walling wrote:
On 02/19/2018 11:00 AM, Thomas Huth wrote:
On 19.02.2018 16:40, Collin L. Walling wrote:
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be
On 02/19/2018 11:00 AM, Thomas Huth wrote:
On 19.02.2018 16:40, Collin L. Walling wrote:
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be converted.
+ * @str: a pointer to a string to store the
On 19.02.2018 16:40, Collin L. Walling wrote:
> On 02/17/2018 02:48 AM, Thomas Huth wrote:
>> On 16.02.2018 23:07, Collin L. Walling wrote:
>> [...]
>>> +/**
>>> + * uitoa:
>>> + * @num: an integer (base 10) to be converted.
>>> + * @str: a pointer to a string to store the conversion.
>>> + *
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be converted.
+ * @str: a pointer to a string to store the conversion.
+ * @len: the length of the passed string.
+ *
+ * Given an integer @num,
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
> +/**
> + * uitoa:
> + * @num: an integer (base 10) to be converted.
> + * @str: a pointer to a string to store the conversion.
> + * @len: the length of the passed string.
> + *
> + * Given an integer @num, convert it to a string. The string