My initial impression,without delving deeply, is this is not a good idea. zero sized array and we malloc one byte. hmmm??? opinion only...my experience tells me prudence is in order when doing something that does not match the problem space exactly. regards, bud davis