Well, for one thing, s needs to be 4 bytes long, not 3. A string needs to be as long as the longest value that will be stored in it, *plus* one extra byte for the null terminator. --- John Gordon Internet: gordon at osiris.cso.uiuc.edu #include <disclaimer.h> gordon at cerl.cecer.army.mil #include <clever_saying.h>