mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Update bootloader/itoa.cpp
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
This commit is contained in:
@@ -10,8 +10,7 @@ void swap(char *x, char *y) {
|
||||
}
|
||||
|
||||
// Function to reverse `buffer[i…j]`
|
||||
char* reverse(char *buffer, int i, int j)
|
||||
{
|
||||
char* reverse(char *buffer, int i, int j) {
|
||||
while (i < j) {
|
||||
swap(&buffer[i++], &buffer[j--]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user