The red line is where the compiler tells me there is an error: invalid lvalue in assignment. Help please
Code:
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
void GetTime(long SysSecs, int *hours,int *minutes,int *seconds);
main()
{
long SysSecs;
int hours, minutes, seconds;
printf("Enter device seconds: ");
SysSecs = GetLong();
GetTime = (SysSecs, &hours, &minutes, &seconds);
printf("Time is: %d:%d:%d\n", hours, minutes, seconds);
}
void GetTime(long SysSecs, int *hours,int *minutes,int *seconds)
{
*hours = SysSecs / 3600;
*minutes = SysSecs / 60;
*seconds = SysSecs % 60;
}