Skip to content

Instantly share code, notes, and snippets.

View reymillenium's full-sized avatar
🇺🇸
God Bless USA!

Reinier Garcia reymillenium

🇺🇸
God Bless USA!
View GitHub Profile
@reymillenium
reymillenium / posabit_comparing_strings
Created December 24, 2020 03:15
Coding exercise for POSaBIT
# Write a small console application that uses a string comparison function that meets the following prototype:
# Entered or passed strings may be of any length; trap for edge conditions and display error messages.
# Function must return an int that is:
# <0 if string1 is less than string2;
# 0 if string1 is the same as string2; or
# >0 if string1 is greater than string2;
# and display the 2 strings as noted below.