captcha stuff

This commit is contained in:
Joseph Redmon
2015-02-23 18:52:05 -08:00
parent 0f645836f1
commit 5f4a5f59b0
13 changed files with 414 additions and 180 deletions

View File

@ -8,6 +8,17 @@
#include "utils.h"
int alphanum_to_int(char c)
{
return (c < 58) ? c - 48 : c-87;
}
char int_to_alphanum(int i)
{
if (i == 36) return '.';
return (i < 10) ? i + 48 : i + 87;
}
void pm(int M, int N, float *A)
{
int i,j;