Skip to content

Instantly share code, notes, and snippets.

@yzwdroid
yzwdroid / lab6.diff
Last active November 7, 2020 02:59
This diff is for osd lab6
diff --git c/main.go w/main.go
index 4679a1a..fd3d249 100644
--- c/main.go
+++ w/main.go
@@ -25,6 +25,7 @@ var js = flag.BoolP("json", "j", false, "output json format to stdout")
var fp = flag.StringP("file", "f", "", "file name to check")
var ignore = flag.BoolP("ignore", "i", false, "ignore url patterns")
var failOnly = flag.Bool("fails", false, "show only urls that failed")
+var urlFlag = flag.BoolP("url", "u", false, "read telescope restful API")
void getTenDigitPhone(char phoneNum[])
{
do
{
printf("Enter a 10-digit phone number: ");
scanf("%10[0-9]",phoneNum);
getchar();
//or clearKeyboard()
} while(strlen(phoneNum) != 10);
}