setpriority - set the nice value
#include <sys/resource.h> int setpriority(int which, id_t who, int nice);
Refer to getpriority().