判断一个给定的字符串是否在另一个给定字符串里面

来源:百度知道 编辑:UC知道 时间:2024/06/17 00:45:50
用c语言编写程序,判断一个给定的字符串是否在另一个给定字符串里面,并确定其位置。

/*******************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2004 AT&T Corp. *
* and it may only be used by you under license from *
* AT&T Corp. ("AT&T") *
* A copy of the Source Code Agreement is available *
* at the AT&T Internet web site URL *
* *
* http://www.research.att.com/sw/license/ast-open.html *
* *
* If you have copied or used this software without agreeing