Question: I want to declare character array and later want to fill it. But getting error:

```
char line[BUFSIZE+1];
strcpy(line,"Memory is Full", sizeof(line));

```

Error is:

```
wrong number of arguments in call to strcpy. 

```

Is there any alternative to achive this?

Answer: 
If you have it, use `strlcpy()`. It does what you might expect `strncpy()` to do.

Failing that, I would recommend using `snprintf()`, if you have it.
`strcpy` doesn't take a size/length argument. Use `memcpy` instead, but give it the size (length+1) of the string being copied, not the size of the buffer, or you risk undefined behavior/segfaults.