How to get spaces from input in c program

How to get spaces from input in c program
scanf ("%[^\n]%*c", name);
Source:w‮uttual.ww‬ri.com
Created Time:2017-08-29 10:18:22  Author:lautturi