Nasty C Assignment