While coding, even if you are tired and not really sober, resist the urge to use stupid variable name even if it's just for debugging... You'll laught your ass off when the line you are modifying reads: if (hardstring[u] == 80) temp c**t = u; . LFMF