sprintf(str,"%td",PTRDIFF_MAX);
ptrdiff_t val;
ptrdiff_t val1;
printf("\n td = %s",str);
sscanf(str,"%td",&val);
printf("\nval with *td = %td",val);
sscanf("2147483647","%td",&val1);
printf("\nfinger val with *td = %td",val1);
sscanf("2147483647","%ld",&val1);
printf("\nfinger val with *ld = %ld",val1);
}
Outcome on Host-generic-pc and ia32-generic-qemu:
![Screenshot from 2023-02-22 11-42-53](https://user-images.githubusercontent.com/49757239/220597260-c4b748d8-dd93-4eb5-89c4-18bc68df9c84.png)
During scanf tests there was a problem reading data assigned as ptrdiff_t ("%t*") .
In testing fallowing branch was used https://github.com/phoenix-rtos/libphoenix/tree/astalke/RTOS-356
To reproduce issue copy following code:
include
int main(void) { char str[125];
}