Go Back

xfodbcusr.c

Does anyone have a code snippet of C source to mask federal id's in odbc?  Our federal id is an alpha 11 that I would want to strip out all non-numeric characters (ours contains dashes) and then output astericks followed by the last 4 digits.  000-00-1234 would become *******1234.  I want there to always be 7 astericks followed by the last 4 numeric digits.  My thoughts were to work backwards through the string until I found 4 numeric digits, kick out of loop and prepend 7 astericks to it.

Thanks in advance for any help.

0 Answers
0   | Posted by Gayle Lewis to xfODBC on 7/22/2022 8:06 PM
Please log in to comment or answer this question.